mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
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
This commit is contained in:
parent
14c3fb1d43
commit
4e080befee
5
.github/workflows/phpunit-tests.yml
vendored
5
.github/workflows/phpunit-tests.yml
vendored
@ -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 <exclude> 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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user