Skip to content

Commit

Permalink
Update codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Feb 1, 2024
1 parent 8fe124e commit a3f9757
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,21 @@ jobs:
- name: Run tests (headless)
uses: coactions/setup-xvfb@v1
id: runTests
with:
run: npm test --full-trace
env:
GITHUB_TOKEN: ${{ secrets.VIPER_ADMIN_TOKEN }}
with:
run: npm test --full-trace

- name: Collect coverage
if: ${{ steps.runTests.outcome == 'success' }}
run: npx nyc report --reporter=lcov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
if: ${{ steps.runTests.outcome == 'success' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info

# Publish the extension when we are on master and the version specified in
Expand Down

0 comments on commit a3f9757

Please sign in to comment.