Skip to content

Commit

Permalink
Improve node tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Feb 10, 2022
1 parent 24eb15e commit 9c9aa7f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
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

0 comments on commit 9c9aa7f

Please sign in to comment.