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/6.1 branch Actions: Run PHP coding standards on the runner instead of inside wp-env
#84250
|
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. |
229a32e to
8cfd1e0
Compare
|
Size Change: 0 B Total Size: 1.26 MB ℹ️ View Unchanged
|
8cfd1e0 to
8c0824d
Compare
|
Size Change: 0 B Total Size: 1.26 MB ℹ️ View Unchanged
|
wp/6.1 branch Actions: Add a PHP-version test matrixwp/6.1 branch Actions: Add a PHP version test matrix
8c0824d to
2a84ccc
Compare
ramonjd
left a comment
There was a problem hiding this comment.
Everything red on this PR passes at the top of this stack (#85137).
Matrix matches the PHP compatibility table for this WordPress version: the lowest and highest supported minor of each PHP major.
Part of #82932.
What?
Runs the PHPUnit job in
unit-test.ymlacross a PHP version matrix:5.6,7.0,7.4,8.0and8.2, each as a single site and a multisite leg.WP_ENV_PHP_VERSIONis set from the matrix, sowp-envuses the matchingwordpress:php<version>images.shivammathur/setup-php, thenramsey/composer-install) beforewp-envstarts.Why?
.wp-env.jsonsets nophpVersion, so the job ran once, on whatever PHP version the floatingwordpressimages use (PHP 8.3 today), which this branch was never written for. The matrix tests the lowest and highest supported minor version of each major PHP version, aswp/6.2does.This branch has no
composer.lock, so Composer has to resolve against the PHP version being tested. Before this change, the only install ran insidewp-env'scomposercontainer, which uses its own PHP version.How?
Ports the PHPUnit matrix and runner-side install from #46510 (9ee17a7). That commit's
composer config platform.phpoverride and "Remove incompatible Composer packages" steps aren't ported. Related PRs in this stack:wp/6.1branch Actions: Remove thespatie/phpunit-watcherdev dependency #84249 removesspatie/phpunit-watcher, which breaks the5.6and7.0legs.wp/6.1branch Actions: Run PHP coding standards on the runner instead of inside wp-env #84250 moves PHP coding standards checks into their own job.wp/6.1branch Actions: Remove the stale Composer PHP platform override #84251 removescomposer.json'sconfig.platform.php.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