Skip to content

CI: Run PHP unit tests on PHP 8.6 - #86318

Draft
desrosj wants to merge 6 commits into
trunkfrom
add/php-8.6-unit-tests
Draft

desrosj wants to merge 6 commits into
trunkfrom
add/php-8.6-unit-tests

Conversation

@desrosj

@desrosj desrosj commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

What?

Follow up to #79260.

Adds PHP 8.6 to the PHP unit test matrix. Failures are allowed for now.

Why?

WordPress 7.2 aims to add support for PHP 8.6. Testing against this version here in gutenberg will help identify any areas that need work to be compatibile.

How?

  • '8.6' is added to the php matrix of the test-php job.
  • continue-on-error: ${{ matrix.php == '8.6' }} is set on the test-php job. An 8.6 failure doesn't fail the workflow run and isn't cancelled by fail-fast along with the other PHP jobs.
  • Pull requests now run 7.4, 8.5, and 8.6 (single site, latest WordPress). Pushes to trunk and release branches run 8.6 single site and multisite.
  • 8.6 isn't tested against the previous WordPress major version, because PHP 8.6 support was added in WordPress 7.2.
  • PHP 8.6 on Linux and PHP 8.6 multisite on Linux are passed as --ignore to ci-status-check.js in "Unit Tests - Status Check". With job-level continue-on-error, GitHub still reports the job's conclusion as failure even when the run succeeds. ci-status-check.js fails on any conclusion other than success or skipped, so without these ignores a failing 8.6 job would make the required status check fail.

Use of AI Tools

Claude Code (Claude Opus 5.5) wrote the workflow change and this description. I reviewed both.

🤖 Generated with Claude Code

@desrosj desrosj added [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core labels Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

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

Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant