Skip to content

Commit dc34d1d

Browse files
committed
Upload test coverage reports to Codecov in GitHub Actions workflow
1 parent f367d8c commit dc34d1d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ jobs:
3030
- run: npm run build --if-present
3131
- name: Run tests with coverage
3232
run: npm run test:coverage
33+
- name: Upload coverage to Codecov
34+
uses: codecov/codecov-action@v5
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
files: ./coverage/lcov.info
38+
flags: unittests
39+
name: codecov
40+
fail_ci_if_error: true

0 commit comments

Comments
 (0)