From 6b4e0bab59dba58781aaf1d0ab658eb75bcf65b7 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 27 Jul 2026 08:29:37 -0700 Subject: [PATCH] Build/Test Tools: Trim the unit test matrix to boundary PHP versions. Reduce the PHPUnit matrix on the active branch to the highest and lowest supported version of each major PHP branch, matching the boundary testing already used on older branches. Version-specific failures cluster at the boundaries, so the intermediate minor versions add job count without adding coverage. This is especially useful when preparing backports across multiple branches, where the full matrix multiplies queued jobs and floods the shared runner pool during a release. Props lance.willett@automattic.com. See #65736. --- .github/workflows/phpunit-tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 51b1988322e5e..c506e47c00b93 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -72,7 +72,8 @@ jobs: fail-fast: false matrix: os: [ ubuntu-24.04 ] - php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ] + # Test highest and lowest supported version of each major. + php: [ '7.4', '8.0', '8.5' ] db-type: [ 'mysql' ] db-version: [ '5.7', '8.0', '8.4' ] tests-domain: [ 'example.org' ] @@ -149,7 +150,8 @@ jobs: fail-fast: false matrix: os: [ ubuntu-24.04 ] - php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ] + # Test highest and lowest supported version of each major. + php: [ '7.4', '8.0', '8.5' ] db-type: [ 'mariadb' ] db-version: [ '5.5', '10.3', '10.5', '10.6', '10.11', '11.4', '11.8' ] multisite: [ false, true ] @@ -201,7 +203,8 @@ jobs: fail-fast: false matrix: os: [ ubuntu-24.04 ] - php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ] + # Test highest and lowest supported version of each major. + php: [ '7.4', '8.0', '8.5' ] db-type: [ 'mysql', 'mariadb' ] db-version: [ '9.6', '12.1' ] multisite: [ false, true ]