Skip to content

Repair wp/5.3 branch Actions: Test the lowest and highest supported PHP versions - #804

Closed
desrosj wants to merge 1 commit into
fix-actions-5.3/upgrade-node-to-14from
fix-actions-5.3/test-php-version-matrix
Closed

desrosj wants to merge 1 commit into
fix-actions-5.3/upgrade-node-to-14from
fix-actions-5.3/test-php-version-matrix

Conversation

@desrosj

@desrosj desrosj commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

What?

Runs the PHP unit tests on PHP 5.6, 7.0 and 7.4, each single site and multisite, instead of only on the wordpress-develop local environment's default PHP version (7.4).

Why?

WordPress 5.3 supports PHP 5.6 through 7.4, so the plugin code on this branch has to run on all of them. Testing only PHP 7.4 would miss anything that breaks on the PHP versions at the bottom of that range.

How?

The matrix tests the lowest and highest supported minor version of each major PHP version WordPress 5.3 supports: 5.6 is the only supported PHP 5 version, and 7.0 and 7.4 bound PHP 7. The range comes from $required_php_version = '5.6.20' in src/wp-includes/version.php on wordpress-develop's 5.3 branch, and the PHP Compatibility and WordPress Versions handbook page, which lists 5.3 as compatible with PHP 5.6 to 7.4 and not with 8.0. wordpress-develop's own phpunit-tests.yml on its 5.3 branch tests the same three versions.

LOCAL_PHP selects the php, cli and phpunit images of the wordpress-develop local environment. The composer.lock in wordpress-develop locks PHPUnit 7.5, which requires PHP 7.1, so on PHP 5.6 and 7.0 PHPUnit ^5.7 is installed along with the PHPUnit Polyfills instead. As in wordpress-develop's own CI, the tests run each image's bundled PHPUnit (5.7.27, 6.5.14 and 7.5.20); the Composer-installed PHPUnit is only there for the Polyfills and the autoloader.

Testing Instructions

The workflow runs on this pull request: check that the six PHP jobs run and pass. actionlint reports nothing for the workflow.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SRW6hV7j7bc8cxt2LUbPJt

Run the PHP unit tests on PHP 5.6, 7.0 and 7.4 instead of only the
`wordpress-develop` local environment's default. WordPress 5.3 requires
PHP 5.6.20 and supports up to PHP 7.4, so these are the lowest and highest
supported minor versions of each supported major PHP version. The
`wordpress-develop` `5.3` branch tests the same three versions.

`LOCAL_PHP` selects the PHP image for the local environment. PHPUnit
5.7 is installed on PHP 5.6 and 7.0, which the locked PHPUnit version does
not support.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SRW6hV7j7bc8cxt2LUbPJt
@desrosj
desrosj removed this pull request from stack #806 October 20, 2026 23:53
@desrosj
desrosj changed the base branch from fix-actions-5.3/upgrade-node-to-14 to wp/5.3 October 20, 2026 23:54
@desrosj
desrosj force-pushed the fix-actions-5.3/test-php-version-matrix branch from 73ed924 to 3f3be38 Compare October 20, 2026 23:54
@desrosj
desrosj changed the base branch from wp/5.3 to fix-actions-5.3/upgrade-node-to-14 October 20, 2026 23:55
@desrosj
desrosj added this pull request to stack #821 October 20, 2026 23:55
@desrosj
desrosj marked this pull request as ready for review October 26, 2026 18:55
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj

desrosj commented Oct 26, 2026

Copy link
Copy Markdown
Owner Author

Moved to WordPress#85630.

@desrosj desrosj closed this Oct 26, 2026
@desrosj
desrosj deleted the fix-actions-5.3/test-php-version-matrix branch October 29, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant