-
Notifications
You must be signed in to change notification settings - Fork 154
feat: add playground support #1659
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "landingPage": "/wp-admin/", | ||
| "preferredVersions": { | ||
| "php": "8.0", | ||
| "wp": "latest" | ||
| }, | ||
| "plugins": ["wp-user-frontend"], | ||
| "steps": [ | ||
| { | ||
| "step": "login", | ||
| "username": "admin" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,18 @@ | ||||||||||||||||||||||||
| name: Plugin asset/readme update | ||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||
| - master | ||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||
| trunk: | ||||||||||||||||||||||||
| name: Push to trunk | ||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||
| - uses: actions/checkout@master | ||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Use a maintained version of
- - uses: actions/checkout@master
+ - uses: actions/checkout@v4📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| - name: WordPress.org plugin asset/readme update | ||||||||||||||||||||||||
| uses: 10up/action-wordpress-plugin-asset-update@stable | ||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||
| SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||||||||||||||||||||||||
| SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||||||||||||||||||||||||
| SLUG: wp-user-frontend | ||||||||||||||||||||||||
|
Comment on lines
+13
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Pin external action to a commit or tag
- - name: WordPress.org plugin asset/readme update
- uses: 10up/action-wordpress-plugin-asset-update@stable
+ - name: WordPress.org plugin asset/readme update
+ uses: 10up/action-wordpress-plugin-asset-update@v2.2.1 # <-- example; replace with latest tag/SHA📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| IGNORE_OTHER_FILES: true | ||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
CI can’t find / parse the blueprint – verify path & expected format
The pipeline reports
ERROR: The file ".wordpress-org/blueprints/blueprint.json" does not existand an XML-related parse error (Start tag expected, '<' not found).This usually happens when:
.wordpress-org/blueprint.json(noblueprints/sub-dir) or a different extension, orUntil the file is in the exact location/format the job expects, “playground support” will remain broken.
Please double-check the spec used by the WordPress Playground action (or whatever step consumes this file) and rename / relocate / convert accordingly.
🏁 Script executed:
Length of output: 630
CI Blueprint Path Mismatch
The CI job is currently unable to locate your blueprint because it’s expecting a different path or format. The file lives at:
•
.wordpress-org/blueprints/blueprint.jsonbut the pipeline error indicates it’s looking for:
•
.wordpress-org/blueprint.json(or an XML-formatted blueprint).
Please verify the WordPress Playground action’s spec and update one of the following so they match:
• Move or rename the file to
.wordpress-org/blueprint.json• Update your workflow/config to point at
blueprints/blueprint.json• If the action requires XML rather than JSON, convert the blueprint to the expected format
Once the path and format align, “playground support” will be restored.
🧰 Tools
🪛 GitHub Actions: Inspections
[error] 1-1: Error: Start tag expected, '<' not found on line 1, column 1. The file may be malformed or not an XML file.
[error] 1-1: ERROR: The file ".wordpress-org/blueprints/blueprint.json" does not exist.
🤖 Prompt for AI Agents