Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ jobs:

- name: Run the unit tests with code coverage (PHPUnit < 10)
if: ${{ matrix.coverage == true && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
run: composer coverage -- --coverage-clover clover.xml
run: composer coverage

- name: Run the unit tests with code coverage (PHPUnit 10+)
if: ${{ matrix.coverage == true && startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
run: composer coverage10 -- --coverage-clover clover.xml
run: composer coverage10

- name: Stop proxy server
continue-on-error: true
Expand All @@ -144,6 +144,6 @@ jobs:
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: "${{ secrets.CODECOV_TOKEN }}"
files: ./clover.xml
files: ./tests/coverage/clover.xml
fail_ci_if_error: true
verbose: true
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

<logging>
<log type="coverage-html" target="tests/coverage" lowUpperBound="35" highLowerBound="90"/>
<log type="coverage-clover" target="tests/coverage/clover.xml"/>
</logging>

<filter>
Expand Down
1 change: 1 addition & 0 deletions phpunit10.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<coverage includeUncoveredFiles="true" ignoreDeprecatedCodeUnits="true">
<report>
<html outputDirectory="tests/coverage" lowUpperBound="35" highLowerBound="90"/>
<clover outputFile="tests/coverage/clover.xml"/>
</report>
</coverage>
</phpunit>