diff --git a/.github/workflows/node-test.yml b/.github/workflows/node-test.yml index 57ed7ae..77592b6 100644 --- a/.github/workflows/node-test.yml +++ b/.github/workflows/node-test.yml @@ -3,10 +3,16 @@ on: [push, pull_request] jobs: run: name: Run - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating-system }} + strategy: + fail-fast: false + matrix: + operating-system: [ubuntu-latest, windows-latest, macos-latest] steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 2 - name: Setup Node.js 16.x uses: actions/setup-node@v2 @@ -22,10 +28,14 @@ jobs: - name: ESLint Check run: npm run lint - - name: Run tests - run: npm test + - name: Run npm audit + run: npm audit - name: Send Coverage - continue-on-error: true - timeout-minutes: 1 - run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/clover.xml -n github-actions-codecov-${{ matrix.operating-system }}-php${{ matrix.php-versions }} \ No newline at end of file + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage/lcov.info + name: github-actions-codecov-${{ matrix.operating-system }} + fail_ci_if_error: false + verbose: true