Repository navigation
Repair wp/5.2 branch Actions: Test the lowest and highest supported PHP versions - #85651
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:
|
ec9b5a3 to
ab29a26
Compare
Part of #83421.
What?
Runs the PHP unit test job as a matrix on PHP
7.3,7.0and5.6, the highest and lowest PHP versions WordPress 5.2 supports, instead of only on the PHP7.1inchriszarate/wordpress-phpunit.Why?
WordPress 5.2 requires PHP
5.6.20and supports up to PHP7.3, so the plugin's PHP should be tested at both ends of that range.How?
wordpress_phpunitservice indocker-compose.ymltakes its image fromPHPUNIT_IMAGE, defaulting to the currentchriszarate/wordpress-phpunit. The default image still installs the WordPress test suite (it hassvnand a MySQL client), and the test steps setPHPUNIT_IMAGEto the leg's image. The service clears the entrypoint of thewordpressdevelop/phpunitimages, which expects a wordpress-develop checkout, and sets the working directory to/app.wordpressdevelop/phpunitimage, published by the WordPress project with the PHPUnit version each PHP version needs:7-php-7.3-fpm(PHPUnit7.5.20),6-php-7.0-fpm(PHPUnit6.5.14) and5-php-5.6-fpm(PHPUnit5.7.27). These match the PHP and PHPUnit versions the wordpress-develop5.2branch tests with, and the WordPress 5.2 test suite supports PHPUnit up to7.x.Lint PHPonly runs on the PHP7.3leg.Testing Instructions
Ran
bin/install-docker.shwithWP_VERSION=5.2and thennpm run test-unit-phpandnpm run test-unit-php-multisitelocally with each leg's image and with the default image: all pass (15 tests). Check that the threePHPjobs pass.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