Skip to content

Commit

Permalink
ci(tests): Add Clover.xml file for Codecov upload
Browse files Browse the repository at this point in the history
- Add `clover.xml` file for Codecov upload
  • Loading branch information
guanguans committed Mar 14, 2024
1 parent 16c8e4f commit 14d866d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./clover.xml
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
fail_ci_if_error: false # optional (default = false)
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

- name: "Upload coverage to Codecov via codecov bash script"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
run: "bash <(curl -s https://codecov.io/bash) -f clover.xml || true"

0 comments on commit 14d866d

Please sign in to comment.