-
Notifications
You must be signed in to change notification settings - Fork 902
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
Add Plugin Check workflow #20808
base: trunk
Are you sure you want to change the base?
Add Plugin Check workflow #20808
Conversation
I see the initial check raised a bunch of flags for hidden files that I'm sure you will want to keep (see files tab), checking to see how best to skip "Hidden files are not permitted." warnings |
Note: looks like the action will need some slight updates to work correctly from the |
I was able to get the build work by copying over some steps from the Running the plugin check against the |
@swissspidy Shouldn't the plugin check action be showing a failure rather than ✅? |
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: Pascal Birchler <[email protected]>
There are three remaining errors to review (and some warnings): |
trademarks | ||
late_escaping | ||
plugin_updater | ||
plugin_review_phpcs |
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.
plugin_review_phpcs | |
plugin_review_phpcs | |
plugin_readme | |
Addresses the The Stable Tag in your readme file does not match the version in your main plugin file.
warning.
Given that this is a development repo for the next release, the stable tag will never match, so it doesn't really make sense to check it.
This also skips some other checks within Plugin_Readme_Check
(such as for valid license), but for an established plugin like this I think it's fine.
Fixes #20809
Context
Run the plugin checking tool for each commit, annotating code with any issues.
Summary
This PR adds a GitHub action that will run whenever a Pull Request is opened or updated against your main branch. The results of the plugin check will be added as annotations to the code section of the PR, indicating the exact issue raised at the line it was found.
This initial implementation enables all checks available in the Plugin Check tool. These can be restricted to specific checks or check categories using the checks and categories attribute respectively.
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
The results of running the plugin check should be available on this PR.
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes #