Skip to content

Commit

Permalink
Added coverage action as well
Browse files Browse the repository at this point in the history
  • Loading branch information
theoboldt committed Dec 31, 2024
1 parent 9b18d02 commit f5dd1aa
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,24 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: phpunit-result-clover
name: phpunit-result-clover-${{ matrix.php-versions }}
path: ./phpunit-result-clover-${{ matrix.php-versions }}.xml

- name: Upload test results to Codecov
- uses: actions/upload-artifact@v4
with:
name: phpunit-result-junit-${{ matrix.php-versions }}
path: ./phpunit-result-junit-${{ matrix.php-versions }}.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./phpunit-result-clover-${{ matrix.php-versions }}.xml
flags: unittests
name: clover-coverage
fail_ci_if_error: false

- name: Upload junit results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
Expand Down

0 comments on commit f5dd1aa

Please sign in to comment.