Repository navigation
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 ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
wp/5.7 branch Actions: Run PHP coding standards on the runner instead of inside wp-env
#84775
|
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 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. |
wp/5.7 branch Actions: Add a PHP-version test matrixwp/5.7 branch Actions: Add a PHP version test matrix
252c68e to
fd1c0fe
Compare
ramonjd
left a comment
There was a problem hiding this comment.
Everything red on this PR passes at the top of this stack (#84796).
Matrix matches the PHP compatibility table for this WordPress version: the lowest and highest supported minor of each PHP major.
Part of #82936.
What?
Runs the PHPUnit job in
unit-test.ymlacross a PHP version matrix:5.6,7.0,7.4and8.0, each as a single site and a multisite leg.WP_ENV_PHP_VERSIONis set from the matrix, sowp-envuses the matchingwordpress:php<version>images.Why?
.wp-env.jsonsets nophpVersion, so the job ran once, on whatever PHP version the floatingwordpressimages use, which this branch was never written for. The matrix tests the lowest and highest supported minor version of each major PHP version.How?
This branch's
packages/envalready readsWP_ENV_PHP_VERSION, so only the workflow changes. Composer still installs dependencies insidewp-env'scomposercontainer, from the committedcomposer.lock. Related PRs in this stack:wp/5.7branch Actions: Remove thespatie/phpunit-watcherdev dependency #84773, directly above this one, removesspatie/phpunit-watcher, which breaks the5.6and7.0legs.wp/5.7branch Actions: Swapphpunit/phpunitfor a release PHP 5.6 and 7.0 can load #84774 swapsphpunit/phpunit, which needs PHP 7.2 or newer, for the newest release the5.6and7.0legs can load.wp/5.7branch Actions: Run PHP coding standards on the runner instead of inside wp-env #84775 moves PHP coding standards checks into their own job. Until then, the lint step runs on every leg.wp/5.7branch Actions: Let the current Composer release install this branch's dependencies #84777 adds aconfig.platform.phpof7.4tocomposer.json, so the newest Composer release installs this branch's dependencies.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.