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 a27108d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ jobs:
run: composer test-coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3
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: "Send code coverage report to Codecov.io"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
run: "bash <(curl -s https://codecov.io/bash) -f clover.xml || true"

0 comments on commit a27108d

Please sign in to comment.