Skip to content

Conversation

@jeffpaul
Copy link
Member

Description of the Change

This PR looks to make use of the WP Playground action to generate a preview button on PRs. A future iteration here would be to have a custom blueprint for ClassifAI that loads in a variety of test content that could be used for PR testing as well as on the ClassifAI Live Preview.

Copilot Summary

This pull request introduces a new GitHub Actions workflow to automate building and previewing pull requests. The workflow handles dependency installation, building the project, packaging the plugin, and providing a preview environment for PRs.

CI/CD Automation and PR Preview:

  • Added a new workflow file .github/workflows/pr-preview.yml to automate building the plugin, caching dependencies, packaging the build, and exposing a preview environment for pull requests.
  • Integrated steps for Node.js and PHP setup, dependency installation (via Composer and npm), and artifact caching to optimize build performance.
  • Implemented artifact upload and integration with WordPress Playground for live PR previews, including blueprint generation for automated plugin installation in the preview environment.

How to test the Change

Will see what happens once I open the PR and whether a functioning Playground link appears.

Changelog Entry

Developer - Added WordPress Playground preview buttons on PRs to aid in testing new features and fixes.

Credits

Props @jeffpaul.

Checklist:

@jeffpaul jeffpaul added this to the 3.8.0 milestone Feb 10, 2026
@jeffpaul jeffpaul requested a review from dkotter February 10, 2026 16:46
@jeffpaul jeffpaul self-assigned this Feb 10, 2026
@jeffpaul jeffpaul moved this to Code Review in Open Source Practice Feb 10, 2026
@github-actions github-actions bot added the needs:code-review This requires code review. label Feb 10, 2026
@github-actions
Copy link

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

Status: Code Review

Development

Successfully merging this pull request may close these issues.

1 participant