Repository navigation
Repair wp/5.3 branch Actions: Test the lowest and highest supported PHP versions - #85630
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
afc72ca to
d5df4c5
Compare
d5df4c5 to
a145363
Compare
Part of #83420.
What?
Runs the PHP unit tests on PHP
5.6,7.0and7.4, each single site and multisite, instead of only on thewordpress-developlocal environment's default PHP version (7.4).Why?
WordPress
5.3supports PHP5.6through7.4, so the plugin code on this branch has to run on all of them. Testing only PHP7.4would 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.3supports:5.6is the only supported PHP 5 version, and7.0and7.4bound PHP 7. The range comes from$required_php_version = '5.6.20'insrc/wp-includes/version.phponwordpress-develop's5.3branch, and the PHP Compatibility and WordPress Versions handbook page, which lists5.3as compatible with PHP5.6to7.4and not with8.0.wordpress-develop's ownphpunit-tests.ymlon its5.3branch tests the same three versions.LOCAL_PHPselects thephp,cliandphpunitimages of thewordpress-developlocal environment. Thecomposer.lockinwordpress-developlocks PHPUnit7.5, which requires PHP7.1, so on PHP5.6and7.0PHPUnit^5.7is installed along with the PHPUnit Polyfills instead. As inwordpress-develop's own CI, the tests run each image's bundled PHPUnit (5.7.27,6.5.14and7.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
PHPjobs run and pass.actionlintreports 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