Skip to content

Commit

Permalink
Fix tests: Coverage was including vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Mar 1, 2023
1 parent bcaad3e commit 03c0616
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ jobs:
coverage: ${{ ((env.USE_COVERAGE == 'yes') && 'xdebug') || 'none' }}

- name: Adjust WP version
run: composer require --dev --no-update "roots/wordpress-no-content:${{ matrix.wp-ver }}"
run: |
composer remove --dev --no-update "roots/wordpress-no-content"
composer remove --dev --no-update "phpunit/phpunit"
composer require --no-update "roots/wordpress-no-content:${{ matrix.wp-ver }}"
composer require --no-update "phpunit/phpunit:^7.5.20 || ^9.6.4"
- name: Install dependencies
uses: ramsey/composer-install@v2
Expand Down
4 changes: 3 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
bootstrap="./tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
Expand All @@ -9,7 +11,7 @@

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./</directory>
<file>./wordpress-early-hook.php</file>
</whitelist>
</filter>

Expand Down

0 comments on commit 03c0616

Please sign in to comment.