Skip to content

Commit

Permalink
ci: Upload coverage and tests to CodeCov.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacingBat3 committed Dec 26, 2024
1 parent 04c1175 commit 68e5133
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,19 @@ jobs:
run: "npm ci"
- name: Build project
run: "npm run build"
- name: Run tests
run: "npm test"
- name: Run tests with coverage+test reporting
run: |
npm test -- --experimental-test-coverage \
--test-reporter=lcov --test-reporter-destination=lcov.info \
--test-reporter=spec --test-reporter-destination=stdout \
--test-reporter=junit --test-reporter-destination=junit.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SpacingBat3/ReForged
- name: Upload test results to CodeCov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 68e5133

Please sign in to comment.