Skip to content

Try: Build WP once for PHPUnit test suite. - #12779

Open
peterwilsoncc wants to merge 4 commits into
WordPress:trunkfrom
peterwilsoncc:try/phpunit-build-wp-once
Open

Try: Build WP once for PHPUnit test suite.#12779
peterwilsoncc wants to merge 4 commits into
WordPress:trunkfrom
peterwilsoncc:try/phpunit-build-wp-once

Conversation

@peterwilsoncc

@peterwilsoncc peterwilsoncc commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Runs npm run build:dev in the newly created prepare-gutenberg reusable workflow for the PHPUnit tests.

This allows the step to be bypassed in each test, saving about 30 seconds of runtime.

As the local environment uses NPM for the docker pull and configuration, the npm ci step is still required. That can be a project for another time.

Trac ticket: https://core.trac.wordpress.org/ticket/65770

Use of AI Tools

AI assistance: Yes
Tool(s): GitHub Copilot
Used for: Initial drafting of this in another PR that also included some docker changes. The creation of this PR built upon portions of that but is much reduced in scope. AI was not used for the generation of this PR per se.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@peterwilsoncc
peterwilsoncc marked this pull request as ready for review July 31, 2026 01:21
@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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props peterwilsoncc.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant