Skip to content

Commit 6dae74e

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) - Fixed: YAML syntax - removed duplicate experimental: false
1 parent 8aa7060 commit 6dae74e

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,22 @@ 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
3432
- php: '8.3'
33+
wp: '6.6'
34+
# Experimental builds for upcoming PHP versions
35+
- php: '8.5'
3536
wp: 'latest'
3637
experimental: true
37-
- php: '8.2'
38+
- php: '8.4'
3839
wp: 'latest'
3940
experimental: true
40-
- php: '8.2'
41-
wp: '6.3'
42-
experimental: true
43-
- php: '8.0'
44-
wp: '5.9'
45-
experimental: true
46-
4741
name: "PHP ${{ matrix.php }} - WP ${{ matrix.wp }}"
4842

4943
continue-on-error: ${{ matrix.experimental }}

0 commit comments

Comments
 (0)