Skip to content

Commit 68e5133

Browse files
committed
ci: Upload coverage and tests to CodeCov.
1 parent 04c1175 commit 68e5133

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Diff for: .github/workflows/node-test.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,19 @@ jobs:
2525
run: "npm ci"
2626
- name: Build project
2727
run: "npm run build"
28-
- name: Run tests
29-
run: "npm test"
28+
- name: Run tests with coverage+test reporting
29+
run: |
30+
npm test -- --experimental-test-coverage \
31+
--test-reporter=lcov --test-reporter-destination=lcov.info \
32+
--test-reporter=spec --test-reporter-destination=stdout \
33+
--test-reporter=junit --test-reporter-destination=junit.xml
34+
- name: Upload coverage reports to Codecov
35+
uses: codecov/codecov-action@v5
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
slug: SpacingBat3/ReForged
39+
- name: Upload test results to CodeCov
40+
if: ${{ !cancelled() }}
41+
uses: codecov/test-results-action@v1
42+
with:
43+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)