Add WordPress Playground preview automation for pull requests#132
Open
davidperezgar wants to merge 5 commits intotrunkfrom
Open
Add WordPress Playground preview automation for pull requests#132davidperezgar wants to merge 5 commits intotrunkfrom
davidperezgar wants to merge 5 commits intotrunkfrom
Conversation
Adds a GitHub Actions workflow that automatically builds the plugin on every PR and posts a one-click Playground preview link as a PR comment. Also includes a blueprint.json with sensible defaults (PHP 8.1, latest WP, Frontblocks + GenerateBlocks pre-installed, block editor as landing page). Closes #131 https://claude.ai/code/session_01FXaWGPwXnqJf4PZWzmvUQv
Matches the pattern used in deploy.yml where Composer is installed manually via the official installer script. https://claude.ai/code/session_01FXaWGPwXnqJf4PZWzmvUQv
Replaces hardcoded 'frontblocks' with github.event.repository.name so the ZIP and artifact names always match the repo slug. https://claude.ai/code/session_01FXaWGPwXnqJf4PZWzmvUQv
🎮 WordPress Playground PreviewA live preview of this pull request is available via WordPress Playground — no local setup needed.
|
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.
Summary
This PR adds automated WordPress Playground preview generation for pull requests, enabling reviewers and testers to instantly preview changes in a live WordPress environment without local setup.
Key Changes
GitHub Actions Workflow (
.github/workflows/playground-preview.yml): New CI/CD workflow that:Playground Blueprint (
.wordpress-playground/blueprint.json): Configuration file for local Playground setup that:Implementation Details
rsyncwith extensive exclusions to minimize artifact size (removes node_modules, vendor, tests, docs, config files, etc.)