Fix Plugin Check workflow: initialize wp-env before running plugin check#39
Closed
Copilot wants to merge 3 commits into
Closed
Fix Plugin Check workflow: initialize wp-env before running plugin check#39Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix workflow to initialize WordPress environment for plugin check
Fix Plugin Check workflow: initialize wp-env before running plugin check
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Plugin Checkworkflow was failing withEnvironment not initialized. Run \wp-env start` first.becauseWordPress/plugin-check-action@v1` requires a running WordPress environment that was never started.Changes
.github/workflows/plugin-check.ymlnpx wp-env startstep immediately beforeRun Plugin Checknpx wp-env stopteardown step after, guarded withif: always()to ensure cleanup on failureOriginal prompt
The GitHub Actions job at https://github.com/HandyPlugins/security-txt-manager/actions/runs/26724040736/job/78756128009 is failing in the
Plugin Checkworkflow.Repository:
HandyPlugins/security-txt-managerObserved failure:
.github/workflows/plugin-check.ymlEnvironment not initialized. Run \wp-env start` first.`Run Plugin Checkstep that usesWordPress/plugin-check-action@v1.Relevant context gathered:
WordPress/plugin-check-action@v1.package.jsonalready uses Node-based tooling and should support invokingnpx wp-envin CI.Please create a pull request that fixes the workflow by ensuring the required WordPress environment is initialized before the plugin check runs. Prefer the minimal safe change.
Implementation guidance:
.github/workflows/plugin-check.yml.Run Plugin Checkto start the environment, e.g.npx wp-env start.npx wp-env stopguarded withif: always().Acceptance criteria:
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is caused by the job invoking a WordPress environment check without first starting the environment:
Environment not initialized. Run \wp-env start` first.`.github/workflows/plugin-check.ymlFix
Initialize
wp-envbefore theRun Plugin Checkstep.Suggested workflow change
Update
.github/workflows/plugin-check.ymlto add a setup step before line 40:Why this fixes it
The action at
.github/workflows/plugin-check.yml#L40-L45runs in an environment that expectswp-envto already be running. Right now, the workflow installs dependencies and builds assets, but never starts WordPress.Optional hardening
To avoid leftover containers and make failures easier to debug, you can wrap cleanup with
if: always():Related file
Your
package.jsonalready uses the 10up toolk...This pull request was created from Copilot chat.