Skip to content

Commit 13f80da

Browse files
authored
Bump L-2 versions for PHP, WP and WC (#2460)
* Bump L-2 versions for WP and WC
1 parent c11633b commit 13f80da

File tree

7 files changed

+1392
-618
lines changed

7 files changed

+1392
-618
lines changed

.github/workflows/compatibility.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
woocommerce: [ 'beta' ]
1313
wordpress: [ 'latest' ]
14-
php: [ '7.2', '7.4', '8.0' ]
14+
php: [ '7.3', '7.4', '8.0' ]
1515

1616

1717
name: Beta (PHP=${{ matrix.php }}, WP=${{ matrix.wordpress }}, WC=${{ matrix.woocommerce }})
@@ -35,12 +35,8 @@ jobs:
3535
php-version: ${{ matrix.php }}
3636
coverage: none
3737

38-
- name: If PHP 7.0, set up PHPUnit 6.5 for legacy compatibility
39-
if: ${{ matrix.php == '7.0' }}
40-
run: wget https://phar.phpunit.de/phpunit-6.5.14.phar && mv phpunit-6.5.14.phar phpunit.phar
41-
42-
- name: If PHP 8.0, set up PHPUnit 9.5 for compatibility
43-
if: ${{ matrix.php == '8.0' }}
38+
- name: If PHP >= 8.0, set up PHPUnit 9.5 for compatibility
39+
if: ${{ matrix.php >= '8.0' }}
4440
run: wget https://phar.phpunit.de/phpunit-9.5.13.phar && mv phpunit-9.5.13.phar phpunit.phar
4541

4642
- name: Run CI checks

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# setup PHP, but without debug extensions for reasonable performance
2323
- uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: '7.1'
25+
php-version: '7.4'
2626
tools: composer
2727
coverage: none
2828
# install dependencies and run linter

.github/workflows/php-tests.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,25 @@ jobs:
1616
include:
1717
# WooCommerce
1818
- woocommerce_support_policy: L
19-
woocommerce: '6.5.0'
19+
woocommerce: '7.0.0'
2020
- woocommerce_support_policy: L-1
21-
woocommerce: '6.4.1'
21+
woocommerce: '6.9.4'
2222
- woocommerce_support_policy: L-2
23-
woocommerce: '6.3.1'
23+
woocommerce: '6.8.2'
2424
# WordPress
2525
- wordpress_support_policy: L
26-
wordpress: '5.9'
26+
wordpress: '6.0'
2727
- wordpress_support_policy: L-1
28-
wordpress: '5.8'
28+
wordpress: '5.9'
2929
- wordpress_support_policy: L-2
30-
wordpress: '5.7'
30+
wordpress: '5.8'
3131
# PHP
3232
- php_support_policy: L
3333
php: '8.0'
3434
- php_support_policy: L-1
3535
php: '7.4'
3636
- php_support_policy: L-2
37-
php: '7.0'
38-
exclude:
39-
- woocommerce_support_policy: L
40-
php_support_policy: L-2
37+
php: '7.3'
4138

4239
name: Stable (PHP=${{ matrix.php_support_policy }}, WP=${{ matrix.wordpress_support_policy }}, WC=${{ matrix.woocommerce_support_policy }})
4340
env:
@@ -60,12 +57,8 @@ jobs:
6057
php-version: ${{ matrix.php }}
6158
coverage: none
6259

63-
- name: If PHP 7.0, set up PHPUnit 6.5 for legacy compatibility
64-
if: ${{ matrix.php == '7.0' }}
65-
run: wget https://phar.phpunit.de/phpunit-6.5.14.phar && mv phpunit-6.5.14.phar phpunit.phar
66-
67-
- name: If PHP 8.0 and WP 5.9, set up PHPUnit 9.5 for compatibility
68-
if: ${{ matrix.php == '8.0' && matrix.wordpress >= '5.9' }}
60+
- name: If PHP >= 8.0 and >= WP 5.9, set up PHPUnit 9.5 for compatibility
61+
if: ${{ matrix.php >= '8.0' && matrix.wordpress >= '5.9' }}
6962
run: wget https://phar.phpunit.de/phpunit-9.5.13.phar && mv phpunit-9.5.13.phar phpunit.phar
7063

7164
- name: Run CI checks

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "GPL-2.0-or-later",
66
"config": {
77
"platform": {
8-
"php": "7.1"
8+
"php": "7.3"
99
},
1010
"allow-plugins": {
1111
"dealerdirect/phpcodesniffer-composer-installer": true,

0 commit comments

Comments
 (0)