Skip to content

Run PHPUnit CI against WP trunk - #3360

Open
vivi-the-going-merry[bot] wants to merge 2 commits into
masterfrom
fix/issue-3358-phpunit-trunk-matrix
Open

vivi-the-going-merry[bot] wants to merge 2 commits into
masterfrom
fix/issue-3358-phpunit-trunk-matrix

Conversation

@vivi-the-going-merry

Copy link
Copy Markdown
Contributor

What was broken

.github/workflows/phpunit.yml pins the WP version matrix to 6.9. A prior
attempt to test against trunk (#1624, 2024) was reverted in Dec 2025 because
test_FrmStylesController::test_front_head failed there.

Root cause

Not a Formidable bug. wp_head()'s wp_maybe_inline_styles() checks the
path for every enqueued style with a path extra, including core's
wp-commands stylesheet. develop.git.wordpress.org's tree only holds
source, not the built wp-includes/css/dist/commands/style.min.css file -
that's generated by npm run build:dev, which this workflow never runs.
Missing the file trips wp_maybe_inline_styles()'s own incorrect-usage
notice, which WP_UnitTestCase converts to a test failure. WP core's own
CI (reusable-phpunit-tests-v3.yml) always builds this before testing.

What changed

  • Matrix wordpress: 6.9 -> wordpress: trunk (both PHP legs).
  • Added a Node setup + npm ci && npm run build:dev step against the
    cloned /tmp/wordpress tree, before PHPUnit runs.

How verified

CI run on this PR (trunk matrix + build step) - see checks.

Closes Strategy11/formidable-pro#6688.

Fixes test_FrmStylesController::test_front_head on trunk: wp_head()'s
wp_maybe_inline_styles() can't find wp-commands' dist stylesheet because
develop.git.wordpress.org's tree only holds source, not build output.
Add an npm build:dev step (matching WP core's own CI) before running
PHPUnit, matrix wordpress: 6.9 -> trunk.
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a6133a75-d75d-4029-be50-11697ca255e3

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

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.

setup-node's node-version-file resolves relative to GITHUB_WORKSPACE, so
an absolute path outside the checkout doesn't work.
@deepsource-io

deepsource-io Bot commented Sep 17, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 1b64c62...c56cf5a on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
PHP Sep 17, 2026 3:49p.m. Review ↗
JavaScript Sep 17, 2026 3:49p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants