Skip to content

ci: migrate to wp-env#467

Merged
justlevine merged 25 commits intodevelopfrom
wp-env
Jan 22, 2026
Merged

ci: migrate to wp-env#467
justlevine merged 25 commits intodevelopfrom
wp-env

Conversation

@justlevine
Copy link
Member

@justlevine justlevine commented Jan 22, 2026

What

Rescaffolds root dev commands, moves over to wp-env, and bumps support to php8.4 + wp6.9

Why

How

Testing Instructions

Additional Info

Checklist:

  • This PR is tested to the best of my abilities.
  • This PR follows the WordPress Coding Standards.
  • This PR has proper inline documentation.
  • This PR has unit tests to verify the code works as intended.
  • The changes in this PR have been noted in CHANGELOG.md

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the testing infrastructure from a custom Docker setup to WordPress's official wp-env tool. The changes streamline the development and testing workflow by leveraging WordPress's standardized environment management, replacing custom Docker configurations with @wordpress/env.

Changes:

  • Migrated from custom Docker containers to wp-env for test environment management
  • Updated test mocks to support wp-env's file system constraints
  • Added compatibility layer for AppContext to support multiple WPGraphQL versions
  • Consolidated CI/CD workflows into a single comprehensive test workflow

Reviewed changes

Copilot reviewed 61 out of 73 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.wp-env.json New wp-env configuration for WordPress environment setup
package.json Added npm dependencies and scripts for wp-env management
tests/_data/mu-plugins/test-url-fixer.php URL rewriting logic for wp-env Docker environment
bin/after-start.sh Post-start setup script for wp-env lifecycle
codeception.dist.yml Updated Codeception config for wp-env module paths
tests/wpunit/*.php Added mock classes to handle file uploads in wp-env
src/Utils/Compat.php New compatibility layer for AppContext getter/setter methods
src/**/*.php Updated to use Compat layer instead of direct AppContext property access
.github/workflows/test.yml New consolidated CI workflow using wp-env
composer.json Updated dependencies to wp-browser 3.7+

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@justlevine justlevine marked this pull request as ready for review January 22, 2026 13:24
@justlevine justlevine requested a review from Copilot January 22, 2026 13:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 38 out of 50 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@justlevine justlevine merged commit 9f8a549 into develop Jan 22, 2026
24 of 35 checks passed
@justlevine justlevine deleted the wp-env branch January 22, 2026 16:38
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.

2 participants