Skip to content

Commit

Permalink
Bump WC and PHP versions (#7134)
Browse files Browse the repository at this point in the history
Co-authored-by: César Costa <[email protected]>
Co-authored-by: César Costa <[email protected]>
  • Loading branch information
3 people authored Sep 13, 2023
1 parent 152be9b commit a23c791
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 24 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
pull_request

env:
WC_MIN_SUPPORTED_VERSION: '7.6.0'
WP_MIN_SUPPORTED_VERSION: '6.0'
PHP_MIN_SUPPORTED_VERSION: '7.3'
WC_MIN_SUPPORTED_VERSION: '7.7.0'
WP_MIN_SUPPORTED_VERSION: '6.1'
PHP_MIN_SUPPORTED_VERSION: '7.4'
GUTENBERG_VERSION_FOR_WP_MIN: '15.7.0'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -23,7 +24,7 @@ jobs:
id: generate_matrix
run: |
WC_VERSIONS=$( echo "[\"$WC_MIN_SUPPORTED_VERSION\", \"latest\", \"beta\"]" )
MATRIX_INCLUDE=$( echo "[{\"woocommerce\":\"$WC_MIN_SUPPORTED_VERSION\",\"wordpress\":\"$WP_MIN_SUPPORTED_VERSION\",\"gutenberg\":\"13.6.0\",\"php\":\"$PHP_MIN_SUPPORTED_VERSION\"}]" )
MATRIX_INCLUDE=$( echo "[{\"woocommerce\":\"$WC_MIN_SUPPORTED_VERSION\",\"wordpress\":\"$WP_MIN_SUPPORTED_VERSION\",\"gutenberg\":\"$GUTENBERG_VERSION_FOR_WP_MIN\",\"php\":\"$PHP_MIN_SUPPORTED_VERSION\"}]" )
echo "matrix={\"woocommerce\":$WC_VERSIONS,\"wordpress\":[\"latest\"],\"gutenberg\":[\"latest\"],\"php\":[\"7.4\"], \"include\":$MATRIX_INCLUDE}" >> $GITHUB_OUTPUT
woocommerce-compatibility:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
E2E_USE_LOCAL_SERVER: false
E2E_RESULT_FILEPATH: 'tests/e2e/results.json'
WC_MIN_SUPPORTED_VERSION: '7.6.0'
WC_MIN_SUPPORTED_VERSION: '7.7.0'
NODE_ENV: 'test'
FORCE_E2E_DEPS_SETUP: true

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/php-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:

env:
WP_VERSION: latest
WC_MIN_SUPPORTED_VERSION: '7.6.0'
WC_MIN_SUPPORTED_VERSION: '7.7.0'
GUTENBERG_VERSION: latest
PHP_MIN_SUPPORTED_VERSION: '7.3'
PHP_MIN_SUPPORTED_VERSION: '7.4'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- name: "Generate matrix"
id: generate_matrix
run: |
PHP_VERSIONS=$( echo "[\"$PHP_MIN_SUPPORTED_VERSION\", \"7.3\", \"7.4\"]" )
PHP_VERSIONS=$( echo "[\"$PHP_MIN_SUPPORTED_VERSION\", \"8.0\", \"8.1\"]" )
echo "matrix={\"php\":$PHP_VERSIONS}" >> $GITHUB_OUTPUT
test:
Expand Down
4 changes: 4 additions & 0 deletions changelog/dev-bump-min-wc-8-1-php-7-4
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Bump minimum required version of WooCommerce to 7.7 and PHP to 7.4.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"minimum-stability": "dev",
"config": {
"platform": {
"php": "7.3"
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
Expand All @@ -20,7 +20,7 @@
}
},
"require": {
"php": ">=7.2",
"php": ">=7.4",
"ext-json": "*",
"automattic/jetpack-connection": "1.51.7",
"automattic/jetpack-config": "1.15.2",
Expand Down
4 changes: 2 additions & 2 deletions phpcs-compat.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<exclude-pattern>tests/</exclude-pattern>

<!-- Configs -->
<config name="minimum_supported_wp_version" value="6.0" />
<config name="testVersion" value="7.3-" />
<config name="minimum_supported_wp_version" value="6.1" />
<config name="testVersion" value="7.4-" />

<rule ref="PHPCompatibility">
<!-- WP has sodium compatibility since https://wordpress.org/support/wordpress-version/version-5-2/ -->
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<exclude-pattern>./lib/*</exclude-pattern>

<!-- Configs -->
<config name="minimum_supported_wp_version" value="6.0" />
<config name="testVersion" value="7.3-" />
<config name="minimum_supported_wp_version" value="6.1" />
<config name="testVersion" value="7.4-" />

<!-- Rules -->
<rule ref="WooCommerce-Core" >
Expand Down
12 changes: 6 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== WooPayments - Fully Integrated Solution Built and Supported by Woo ===
Contributors: woocommerce, automattic
Tags: payment gateway, payment, apple pay, credit card, google pay, woocommerce payments
Requires at least: 6.0
Tested up to: 6.2
Requires PHP: 7.3
Requires at least: 6.1
Tested up to: 6.3
Requires PHP: 7.4
Stable tag: 6.4.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -38,9 +38,9 @@ Our global support team is available to answer questions you may have about WooP

= Requirements =

* WordPress 6.0 or newer.
* WooCommerce 7.6 or newer.
* PHP 7.3 or newer is recommended.
* WordPress 6.1 or newer.
* WooCommerce 7.7 or newer.
* PHP 7.4 or newer is recommended.

= Try it now =

Expand Down
8 changes: 4 additions & 4 deletions woocommerce-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* Woo: 5278104:bf3cf30871604e15eec560c962593c1f
* Text Domain: woocommerce-payments
* Domain Path: /languages
* WC requires at least: 7.6
* WC tested up to: 7.8.0
* Requires at least: 6.0
* Requires PHP: 7.3
* WC requires at least: 7.7
* WC tested up to: 7.9.0
* Requires at least: 6.1
* Requires PHP: 7.4
* Version: 6.4.1
*
* @package WooCommerce\Payments
Expand Down

0 comments on commit a23c791

Please sign in to comment.