Skip to content

Commit

Permalink
ci: add coverage upload to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed May 26, 2023
1 parent 172b722 commit fc9f081
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ jobs:
git config --global user.name "Test User"
- name: Run tests
run: npm run test
- name: Upload coverage reports to Codecov
if: ${{ matrix.node-version == 20 }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/coverage-final.json
fail_ci_if_error: true

0 comments on commit fc9f081

Please sign in to comment.