ci: automate plugin-check against toolkit plugins#523
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR adds automated WordPress plugin compliance checking to the CI/CD pipeline. When PHP files in the plugins/ directory are modified, the workflow detects affected plugins and runs WordPress Plugin Check against each one, surfacing results as PR annotations.
Key Changes:
- Implements a two-job workflow: one to detect modified plugins, another to run checks in parallel via matrix strategy
- Integrates the official WordPress Plugin Check action to validate against WordPress.org guidelines
- Configures the workflow to trigger on pushes and pull requests affecting PHP files in
plugins/subdirectories
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…wpengine/hwptoolkit into issue-495-automate-plugin-check
📦 Plugin Artifacts Ready!Download from GitHub Actions run Available plugins:
See the "Artifacts" section at the bottom of the Actions run page |
colinmurphy
left a comment
There was a problem hiding this comment.
LGTM
Only small thing would be to make sure it doesn't run on any wp-env or e2e examples plugins but that might be hard to test without merging.
This pull request introduces a new GitHub Actions workflow to automate WordPress plugin checks for any modified plugins in the
plugins/directory. The workflow detects changed plugins and runs the official WordPress Plugin Check action for each, providing results as file annotations directly in pull requests.New WordPress Plugin Check Workflow:
.github/workflows/plugin-check.ymlto automatically detect modified plugins and run the WordPress Plugin Check action in a matrix job for each changed plugin, with results shown as PR file annotations.