Skip to content

Commit 450380a

Browse files
committed
try codecov action
1 parent 246de73 commit 450380a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
node: [ 22, 24 ]
14-
env:
15-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
13+
node: [22, 24]
1614

1715
name: Node ${{ matrix.node }}
1816
steps:
@@ -31,13 +29,12 @@ jobs:
3129
3230
- name: Copy Test Config
3331
run: cp ./test/config/config.githubActions.js ./test/config/config.js
34-
32+
3533
- name: Run Coverage Testing
3634
run: npm run coverage
3735

3836
- name: Codecov
37+
uses: codecov/codecov-action@v5
3938
if: ${{ (success() || failure()) && github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' && matrix.node == 22 }}
40-
run: |
41-
curl -Os https://uploader.codecov.io/latest/linux/codecov
42-
chmod +x codecov
43-
./codecov -t ${CODECOV_TOKEN}
39+
env:
40+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)