Skip to content

Commit d2907c9

Browse files
committed
Add PHP 8.5 to CI testing
1 parent 801700c commit d2907c9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/files/generate-ci-matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
$matrix = array();
6060

6161
// Add PHP tests.
62-
foreach ( array( '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ) as $php ) {
62+
foreach ( array( '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ) as $php ) {
6363
$matrix[] = array(
6464
'name' => "PHP tests: PHP $php WP latest",
6565
'script' => 'test-php',

.github/versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ PNPM_VERSION=10.4.0
66

77
# Other useful version numbers.
88
MIN_PHP_VERSION=7.2
9-
MAX_PHP_VERSION=8.4
9+
MAX_PHP_VERSION=8.5

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ jobs:
196196
strategy:
197197
fail-fast: false
198198
matrix:
199-
php-versions: [ '7.2', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
199+
php-versions: [ '7.2', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
200200
experimental: [ false ]
201201

202202
steps:

docs/monorepo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ All GitHub Actions configuration for the monorepo, including CI, lives in `.gith
4141

4242
## Compatibility
4343

44-
All projects should be compatible with PHP versions WordPress supports. That's currently PHP 7.2 to 8.4.
44+
All projects should be compatible with PHP versions WordPress supports. That's currently PHP 7.2 to 8.5.
4545

4646
## First Time
4747

@@ -259,15 +259,15 @@ If a project contains PHP tests (typically PHPUnit), it must define `.scripts.te
259259
260260
A MySQL database is available if needed; credentials may be found in `~/.my.cnf`. Note that the host must be specified as `127.0.0.1`, as when passed `localhost` PHP will try to connect via a Unix domain socket which is not available in the Actions environment.
261261
262-
Tests are run with a variety of supported PHP versions from 7.2 to 8.4. If you have tests that only need to be run once, run them when `PHP_VERSION` matches that in `.github/versions.sh`.
262+
Tests are run with a variety of supported PHP versions from 7.2 to 8.5. If you have tests that only need to be run once, run them when `PHP_VERSION` matches that in `.github/versions.sh`.
263263
264264
#### PHP tests for non-plugins
265265
266266
For all project types other than WordPress plugins, the necessary version of PHPUnit and/or any other tools should be pulled in via Composer.
267267
268268
We currently make use of the following packages in testing; it's encouraged to use these rather than introducing other tools that serve the same purpose.
269269
270-
* [yoast/phpunit-polyfills](https://packagist.org/packages/yoast/phpunit-polyfills) supplies polyfills for compatibility with PHPUnit 8.5 to 9.6, to support PHP 7.2 to 8.4.
270+
* [yoast/phpunit-polyfills](https://packagist.org/packages/yoast/phpunit-polyfills) supplies polyfills for compatibility with PHPUnit 8.5 to 9.6, to support PHP 7.2 to 8.5.
271271
* [automattic/phpunit-select-config](https://packagist.org/packages/automattic/phpunit-select-config) allows for selecting a configuration file based on the version of PHPUnit in use, since configs are often not compatible across major versions since PHPUnit 9.
272272
* PHPUnit's built-in mocking is used for class mocks.
273273
* [brain/monkey](https://packagist.org/packages/brain/monkey) is used for mocking functions, and can also provide some functions for minimal WordPress compatibility.

0 commit comments

Comments
 (0)