Skip to content

Commit 8b73c5f

Browse files
committed
Update unit test matrix to modern PHP/WP versions
- Base matrix: PHP 7.4, 8.1, 8.2, 8.3 (stable versions) - Experimental: PHP 8.4, 8.5 only - WordPress: 6.6+ (latest and 6.6 for compatibility) - Removed: PHP 8.0 (outdated), old WP versions (< 6.6) - Cleaner, focused test coverage on supported versions
1 parent 91b5ff0 commit 8b73c5f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/unit-tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,25 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
# Notes regarding supported versions in WP:
25-
# The base matrix only contains the PHP versions which are supported on all supported WP versions.
26-
php: ['8.0', '8.1', '7.4']
25+
# Testing against stable PHP versions with WordPress 6.6+
26+
php: ['7.4', '8.1', '8.2', '8.3']
2727
wp: ['latest']
2828
experimental: [false]
2929

3030
include:
31-
# Complement the builds run via the matrix with high/low WP builds for PHP 7.4 and 8.0.
32-
# PHP 8.0 is sort of supported since WP 5.6.
33-
# PHP 7.4 is supported since WP 5.3.
31+
# Test against older supported WordPress version
32+
- php: '8.3'
33+
wp: '6.6'
34+
experimental: false
35+
# Experimental builds for upcoming PHP versions
3436
- php: '8.5'
3537
wp: 'latest'
3638
experimental: true
3739
- php: '8.4'
3840
wp: 'latest'
3941
experimental: true
42+
wp: 'latest'
43+
experimental: true
4044

4145
- php: '8.3'
4246
wp: 'latest'
@@ -129,4 +133,4 @@ jobs:
129133
- name: Run the unit tests - multisite
130134
env:
131135
WP_MULTISITE: 1
132-
run: ./vendor/bin/phpunit
136+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)