-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WP_ENV_MULTISITE envoriment variable. #68792
base: trunk
Are you sure you want to change the base?
Conversation
Introduce a new `multisite` option in `wp-env` to enable multisite setups. This can be specified via the `WP_ENV_MULTISITE` environment variable or in the configuration file. Updated documentation to include usage instructions.
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This should probably be added to the changelog file too |
Co-authored-by: Pascal Birchler <[email protected]>
Size Change: 0 B Total Size: 1.84 MB ℹ️ View Unchanged
|
This enhancement allows overriding the `multisite` option using the `WP_ENV_MULTISITE` variable. It provides greater flexibility for customizing environment configurations.
@swissspidy Fixed. |
Flaky tests detected in 3e48949. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12888006442
|
Corrected the JSDoc type annotation for the multisite property from `bool` to `boolean` for consistency. Added a minor formatting adjustment to the multisite environment variable processing logic.
We discussed this in the original PR. For me it's not really clear why some config should support an environment variable while others shouldn't. (I know this is already the case). So my opinion is that, I'd prefer to be consistent. Can we avoid having to handle every config option manually and instead have a naming convention. I know some tools that do that. |
I agree for consisancy all or none should have envoriment variable. This PR comes out of necessity, I have a requirement to use wp-env in CI to run E2E tests. I need to run the tests against single and multisite. This envoriemnt varible fixes that. |
|
In #67845 support for
multisite
was added in option inwp-env
setups.Related: #68125
What?
This PR, it adds the functionality to can be specified via the
WP_ENV_MULTISITE
environment variable or in the configuration file.Why?
It makes it easier to define it the site is multisite in a CI context.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast