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 4e9991a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@ jobs:
- name: Execute tests
run: composer test-coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)
# - 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: 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 4e9991a

Please sign in to comment.