Skip to content

Repair wp/5.7 branch Actions: Add a PHP version test matrix - #84772

Open
desrosj wants to merge 1 commit into
fix-actions-5.7/docker-compose-v2from
fix-actions-5.7/update-php-test-matrix
Open

desrosj wants to merge 1 commit into
fix-actions-5.7/docker-compose-v2from
fix-actions-5.7/update-php-test-matrix

Conversation

@desrosj

@desrosj desrosj commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Part of #82936.

What?

Runs the PHPUnit job in unit-test.yml across a PHP version matrix: 5.6, 7.0, 7.4 and 8.0, each as a single site and a multisite leg.

  • WP_ENV_PHP_VERSION is set from the matrix, so wp-env uses the matching wordpress:php<version> images.
  • The single site and multisite test steps, which both ran in the one job, now each run in their own leg.

Why?

.wp-env.json sets no phpVersion, so the job ran once, on whatever PHP version the floating wordpress images 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/env already reads WP_ENV_PHP_VERSION, so only the workflow changes. Composer still installs dependencies inside wp-env's composer container, from the committed composer.lock. Related PRs in this stack:

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.

@desrosj desrosj added [Type] Build Tooling Issues or PRs related to build tooling [Tool] Env /packages/env labels Oct 15, 2026
@desrosj desrosj self-assigned this Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ea9ef7dd-bd3e-4e83-8881-d33adec2a6d0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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 removed this pull request from stack #84797 October 16, 2026 00:33
@desrosj
desrosj added this pull request to stack #84872 October 16, 2026 00:34
@desrosj
desrosj removed this pull request from stack #84872 October 16, 2026 15:52
@desrosj
desrosj added this pull request to stack #84945 October 16, 2026 15:53
@desrosj desrosj changed the title Repair wp/5.7 branch Actions: Add a PHP-version test matrix Repair wp/5.7 branch Actions: Add a PHP version test matrix Oct 16, 2026
@desrosj
desrosj force-pushed the fix-actions-5.7/update-php-test-matrix branch from 252c68e to fd1c0fe Compare October 19, 2026 17:09

@ramonjd ramonjd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@desrosj
desrosj removed this pull request from stack #84945 October 21, 2026 19:48
@desrosj
desrosj added this pull request to stack #85354 October 21, 2026 19:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants