From 41be86538e6142dc93cb04b1f26fc42ba1d81a3a Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 15 Sep 2026 09:17:25 -0700 Subject: [PATCH] Build/Test Tools: Trim the routine PHPUnit database matrix in the 7.0 branch. Test MariaDB 5.5, 10.6, 10.11, 11.4, and 11.8 on pushes and pull requests. Dispatched runs, including the monthly run from test-old-branches.yml, keep the full database matrix. Scheduled runs only fire from the default branch, so on a release branch the dispatch is the equivalent of the weekly full run on trunk. Reduces the MySQL and MariaDB jobs on a pull request from 67 to 55. Follow-up to [63584]. See #66069. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/phpunit-tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 63a5442132bdc..46d2f904c157f 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -141,8 +141,8 @@ jobs: # # Creates a PHPUnit test job for each PHP/MariaDB combination. # - # All LTS versions of MariaDB supported by WordPress with greater than 1% usage according to w.org/stats should be - # tested. The exceptions to this rule are the most recent LTS and version 5.5. + # Dispatched runs test all LTS versions of MariaDB supported by WordPress with greater than 1% usage according to + # w.org/stats. The exceptions to this rule are the most recent LTS and version 5.5. # # The 5.5 release was intended as a drop-in replacement for MySQL. Because the MySQL 5.5 Docker containers do not # work, this ensures some level of MySQL 5.5 testing. @@ -162,7 +162,8 @@ jobs: # 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' ] + # Dispatched runs, including the monthly old-branch run, test the full database matrix. Other events retain MariaDB 5.5 compatibility, 10.6, and newer LTS releases. + db-version: ${{ github.event_name == 'workflow_dispatch' && fromJSON('["5.5","10.3","10.5","10.6","10.11","11.4","11.8"]') || fromJSON('["5.5","10.6","10.11","11.4","11.8"]') }} multisite: [ false, true ] memcached: [ false ]