From 9879434020b7acf9c10dad2593b9658737c11516 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 31 Aug 2023 10:15:42 +0000 Subject: [PATCH] Build/Test Tools: Enable running the tests on PHP 8.3. PHP 8.3 is expected to be released at the end of November 2023. Enabling the tests to run in CI on PHP 8.3 allows WordPress core to start getting ready. Note: Xdebug-related tests will not be run on PHP 8.3 at this time as the Docker image for PHP 8.3 does not contain Xdebug yet. Once a stable release of Xdebug 3.3.0 is available, it can be added to the Docker image and the test step can then be enabled for PHP 8.3. Follow-up to [53922], [56492], [56495]. Props jrf, costdev. See #59231. git-svn-id: https://develop.svn.wordpress.org/trunk@56498 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/phpunit-tests-run.yml | 1 + .github/workflows/phpunit-tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpunit-tests-run.yml b/.github/workflows/phpunit-tests-run.yml index 843a950481..af03911f4a 100644 --- a/.github/workflows/phpunit-tests-run.yml +++ b/.github/workflows/phpunit-tests-run.yml @@ -165,6 +165,7 @@ jobs: # __fakegroup__ is excluded to force PHPUnit to ignore the settings in phpunit.xml.dist. - name: Run (Xdebug) tests + if: ${{ inputs.php != '8.3' }} run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__ - name: Ensure version-controlled files are not modified or deleted diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 9c399d51ed..7edf916080 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -45,7 +45,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] db-type: [ 'mysql' ] db-version: [ '5.7', '8.0' ] multisite: [ false, true ] @@ -97,7 +97,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] db-type: [ 'mariadb' ] db-version: [ '10.4', '10.6', '10.11', '11.0' ] multisite: [ false, true ]