Skip to content

Commit

Permalink
ci: update codecov (#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiweilian authored Nov 26, 2024
1 parent 721bb5e commit b07bb16
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci --ignore-scripts
- run: npm run test:ci
- run: npm install codecov -g
if: ${{ matrix.node-version == 'current' }}
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
if: ${{ matrix.node-version == 'current' }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: ${{ matrix.node-version == 'current' && github.actor != 'dependabot[bot]' }}
with:
files: ./coverage/clover.xml
directory: ./coverage/lcov-report/
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
build:
name: Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit b07bb16

Please sign in to comment.