diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index a55ca8c642..4e206fa634 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -269,12 +269,9 @@ jobs: - name: Run REST API tests run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group restapi-jsclient - # Xdebug supports PHP 8 only from version 3.0, which is not released yet. - # Once Xdebug 3.0 is released and included in the Docker image, the IF condition should be removed. # __fakegroup__ is excluded to force PHPUnit to ignore the settings in phpunit.xml.dist. - name: Run (xDebug) tests - if: ${{ env.LOCAL_PHP != '8.0-fpm' }} - run: LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__ + run: LOCAL_PHP_XDEBUG=true npm run test:${{ env.PHPUNIT_SCRIPT }} -- -v --group xdebug --exclude-group __fakegroup__ - name: Checkout the WordPress Test Reporter if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}