From 4e080befee3544a5d3e8afb92613463f88ad5327 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 12 Feb 2021 16:36:14 +0000 Subject: [PATCH] Build/Test Tools: Run xDebug tests on PHP 8.0. The PHP 8 Docker container for the local WordPress environment now contains xDebug 3.x (the version required for running on PHP 8), so the `xdebug` test group can now be run. See #50401, #51802. git-svn-id: https://develop.svn.wordpress.org/trunk@50299 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/phpunit-tests.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }}