Skip to content

Commit 3814a82

Browse files
committed
fix: report test coverage#5
Signed-off-by: seven <[email protected]>
1 parent 6b96451 commit 3814a82

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/node.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
- run: npm audit --audit-level=critical
3232
- run: npm run test:ci
3333
- name: Upload coverage reports to Codecov
34-
uses: codecov/codecov-action@v3
35-
env:
36-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
34+
uses: codecov/codecov-action@v4
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
verbose: true
38+
fail_ci_if_error: true
39+
3740
- run: npm run build

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
- run: npm audit --audit-level=critical
3535
- run: npm run test:ci
3636
- name: Upload coverage reports to Codecov
37-
uses: codecov/codecov-action@v3
38-
env:
39-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
37+
uses: codecov/codecov-action@v4
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
verbose: true
41+
fail_ci_if_error: true
4042
- name: build 🔧
4143
run: npm run build
4244
- name: Generate changelog

0 commit comments

Comments
 (0)