Skip to content

Commit

Permalink
Upload code coverage report to codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 13, 2023
1 parent a51a371 commit 2a841ab
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,14 @@ jobs:
composer-options: --ignore-platform-reqs

- name: Run tests
run: composer run phpunit -- --coverage-text
run: composer run phpunit -- --coverage-clover .phpunit.cache/clover.xml

- name: Upload coverage reports to Codecov
if: ${{ success() && matrix.php == '8.2' }}
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./.phpunit.cache/clover.xml
fail_ci_if_error: true
verbose: true

0 comments on commit 2a841ab

Please sign in to comment.