Skip to content

Commit 25d5444

Browse files
committed
test(unit): modernize coverage collection
1 parent aaacf5c commit 25d5444

7 files changed

Lines changed: 116 additions & 230 deletions

File tree

.c8rc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
comment:
2+
layout: reach,diff,flags,tree

.github/workflows/node-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ jobs:
4646
- run: npm clean-install
4747
- run: corepack npm audit signatures
4848
- run: npm test
49-
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
49+
- name: Upload unit test coverage to Codecov
50+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
flags: unit
54+
report_type: coverage
5055
release:
5156
needs:
5257
- verify

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ $ npm test
133133

134134
[coverage-link]: https://codecov.io/github/form8ion/github-actions-node-ci
135135

136-
[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/github-actions-node-ci?logo=codecov
136+
[coverage-badge]: https://img.shields.io/codecov/c/github/form8ion/github-actions-node-ci/master?logo=codecov
137137

138138
[slsa-badge]: https://slsa.dev/images/gh-badge-level2.svg
139139

0 commit comments

Comments
 (0)