Skip to content

Commit b07bb16

Browse files
authored
ci: update codecov (#2556)
1 parent 721bb5e commit b07bb16

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/continuous-integration-workflow.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
- run: npm ci --ignore-scripts
2929
- run: npm run test:ci
30-
- run: npm install codecov -g
31-
if: ${{ matrix.node-version == 'current' }}
32-
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
33-
if: ${{ matrix.node-version == 'current' }}
30+
- name: Upload coverage to Codecov
31+
uses: codecov/codecov-action@v5
32+
if: ${{ matrix.node-version == 'current' && github.actor != 'dependabot[bot]' }}
33+
with:
34+
files: ./coverage/clover.xml
35+
directory: ./coverage/lcov-report/
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
verbose: true
38+
fail_ci_if_error: true
3439
build:
3540
name: Build
3641
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)