Skip to content

Commit 43e329d

Browse files
committed
Build/Test Tools: Trim the routine PHPUnit database matrix.
Test MySQL 5.7, 8.0, and 8.4 and MariaDB 5.5, 10.6, 10.11, 11.4, and 11.8 on pushes, pull requests, and manual runs. Keep the complete database matrix on the weekly schedule. Reduce routine coverage from 86 to 68 jobs while retaining the 182-job weekly matrix. Preserve the reporting, memcached, alternate-domain, HTML API, innovation-release, and PHP prerelease configurations. Developed in: #13447 Props lucatume, adrianmoldovanwp. Fixes #66069. git-svn-id: https://develop.svn.wordpress.org/trunk@63584 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9a2e38e commit 43e329d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/phpunit-tests.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ jobs:
113113
# The scheduled run tests every supported PHP version. Other events test the highest and lowest of each major.
114114
php: ${{ github.event_name == 'schedule' && fromJSON('["7.4","8.0","8.1","8.2","8.3","8.4","8.5"]') || fromJSON('["7.4","8.0","8.5"]') }}
115115
db-type: [ 'mysql' ]
116-
db-version: [ '5.7', '8.0', '8.4', '9.7' ]
116+
# The scheduled run tests the full database matrix. Other events retain MySQL 5.7 compatibility and the widely used 8.x releases.
117+
db-version: ${{ github.event_name == 'schedule' && fromJSON('["5.7","8.0","8.4","9.7"]') || fromJSON('["5.7","8.0","8.4"]') }}
117118
tests-domain: [ 'example.org' ]
118119
multisite: [ false, true ]
119120
memcached: [ false ]
@@ -173,8 +174,8 @@ jobs:
173174
#
174175
# Creates a PHPUnit test job for each PHP/MariaDB combination.
175176
#
176-
# All LTS versions of MariaDB supported by WordPress with greater than 1% usage according to w.org/stats should be
177-
# tested. The exceptions to this rule are the most recent LTS and version 5.5.
177+
# The scheduled run tests all LTS versions of MariaDB supported by WordPress with greater than 1% usage according to
178+
# w.org/stats. The exceptions to this rule are the most recent LTS and version 5.5.
178179
#
179180
# The 5.5 release was intended as a drop-in replacement for MySQL. Because the MySQL 5.5 Docker containers do not
180181
# work, this ensures some level of MySQL 5.5 testing.
@@ -205,7 +206,8 @@ jobs:
205206
# The scheduled run tests every supported PHP version. Other events test the highest and lowest of each major.
206207
php: ${{ github.event_name == 'schedule' && fromJSON('["7.4","8.0","8.1","8.2","8.3","8.4","8.5"]') || fromJSON('["7.4","8.0","8.5"]') }}
207208
db-type: [ 'mariadb' ]
208-
db-version: [ '5.5', '10.3', '10.5', '10.6', '10.11', '11.4', '11.8' ]
209+
# The scheduled run tests the full database matrix. Other events retain MariaDB 5.5 compatibility, 10.6, and newer LTS releases.
210+
db-version: ${{ github.event_name == 'schedule' && 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"]') }}
209211
multisite: [ false, true ]
210212
memcached: [ false ]
211213

0 commit comments

Comments
 (0)