bazoFF/frontend-project-46

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
name: test

on:
  - push

env:
  CI: true


jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [ 18.x ]

    steps:
      - uses: actions/checkout@v3

      - name: Use Node ${{ matrix.node }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node }}
          cache: 'npm'

      - name: npm install
        run: |
          make install
        env:
          CI: true

      - name: Test & publish code coverage
        uses: paambaati/codeclimate-action@v3.2.0
        env:
          CC_TEST_REPORTER_ID: 576135cf1b656b789935f697c65cdd1ecc322122c8613ab64bfcb9a00d0d9f8e
        with:
          coverageCommand: make test-coverage
          debug: true