Skip to content

Commit 96457cf

Browse files
committed
migrate coverallsapp to codecov
1 parent 89242e2 commit 96457cf

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Node.js CI
52

63
on:
@@ -29,9 +26,16 @@ jobs:
2926

3027
- run: npm ci
3128
- run: npm run test-ci
32-
- run: npm run coverage
3329

34-
- name: Coveralls GitHub Action
35-
uses: coverallsapp/github-action@v2
30+
- name: Generate coverage report
31+
if: matrix.node-version == 24
32+
run: npm run coverage
33+
34+
- name: Upload coverage to Codecov
35+
if: matrix.node-version == 24
36+
uses: codecov/codecov-action@v5
3637
with:
37-
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
file: ./coverage/lcov.info
40+
fail_ci_if_error: false
41+
verbose: true

0 commit comments

Comments
 (0)