Skip to content

Commit 60c12f3

Browse files
committed
Attempt to fix code coverage
1 parent 414031e commit 60c12f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/quicktest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
if: ${{ success() && github.repository_owner == 'WordPress' && github.ref_name == 'develop' }}
7878
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
7979
with:
80-
files: ./build/logs/clover.xml
80+
files: ./build/logs/clover-sniffs.xml,./build/logs/clover-utils.xml
8181
fail_ci_if_error: true
8282
verbose: true
8383
env:

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
if: ${{ success() && matrix.coverage == true && github.repository_owner == 'WordPress' }}
140140
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
141141
with:
142-
files: ./build/logs/clover.xml
142+
files: ./build/logs/clover-sniffs.xml,./build/logs/clover-utils.xml
143143
fail_ci_if_error: true
144144
verbose: true
145145
env:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"@php ./vendor/phpunit/phpunit/phpunit WordPress/Util/Tests/ --no-coverage"
5858
],
5959
"coverage": [
60-
"@php ./vendor/phpunit/phpunit/phpunit --filter WordPress ./vendor/squizlabs/php_codesniffer/tests/AllTests.php",
61-
"@php ./vendor/phpunit/phpunit/phpunit WordPress/Util/Tests/"
60+
"@php ./vendor/phpunit/phpunit/phpunit --filter WordPress ./vendor/squizlabs/php_codesniffer/tests/AllTests.php --coverage-clover build/logs/clover-sniffs.xml",
61+
"@php ./vendor/phpunit/phpunit/phpunit WordPress/Util/Tests/ --coverage-clover build/logs/clover-utils.xml"
6262
],
6363
"check-complete": [
6464
"@php ./vendor/phpcsstandards/phpcsdevtools/bin/phpcs-check-feature-completeness -q ./WordPress"

0 commit comments

Comments
 (0)