Skip to content
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 the WordPress Plugin Check Action #806

Merged
merged 5 commits into from
Sep 27, 2024
Merged

Conversation

dkotter
Copy link
Collaborator

@dkotter dkotter commented Sep 26, 2024

Description of the Change

WordPress has an official Plugin Check plugin that runs a handful of different checks. They've brought the same functionality into a GitHub Action and this PR adds that as a workflow.

Also made some minor updates to our Build Release Zip Action (which we use here to run tests on the final build) and fix the few issues the Plugin Check found.

Note there are quite a few checks the Plugin Check does, some of which we already do separately (like PHPCS). For now I've left all checks in place other than the Plugin Readme and Plugin Updater checks (both fail here) but we may want to trim the list down if we think some of these are overkill, though they run fast enough I think it's fine.

How to test the Change

Verify the Plugin Check Action is passing on this PR

Changelog Entry

Fixed - Ensure all strings have translator comments
Developer - Add the WordPress Plugin Check GitHub Action

Credits

Props @dkotter

Checklist:

@dkotter dkotter added this to the 3.2.0 milestone Sep 26, 2024
@dkotter dkotter self-assigned this Sep 26, 2024
…; add caching to this so it runs faster; use this action in our plugin check action so we're testing on the final build version
@dkotter dkotter changed the title Try testing out the Plugin Check Action Add the WordPress Plugin Check Action Sep 26, 2024
@dkotter dkotter marked this pull request as ready for review September 26, 2024 21:08
@dkotter dkotter requested review from jeffpaul and a team as code owners September 26, 2024 21:08
@github-actions github-actions bot added the needs:code-review This requires code review. label Sep 26, 2024
working-directory: ${{ github.event.repository.name }}

- name: Run plugin check
uses: wordpress/plugin-check-action@v1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any options to know specifically what checks we're running or is it all-or-nothing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default it will run all tests but you can exclude certain checks or certain categories of checks. If you see a few lines below, we're using the exclude-checks setting to remove a couple checks but we run everything else.

You can see all the checks and categories here: https://github.com/wordpress/plugin-check-action/?tab=readme-ov-file#supported-checks

@jeffpaul
Copy link
Member

Looks good to me, though we might suggest an upstream enhancement to have some sort of simple report post-run to see what's passed/failed as it wasn't immediately clear where that info was in action run.

@jeffpaul jeffpaul self-requested a review September 27, 2024 14:39
jeffpaul
jeffpaul previously approved these changes Sep 27, 2024
@dkotter dkotter merged commit b881574 into develop Sep 27, 2024
13 of 14 checks passed
@dkotter dkotter deleted the feature/plugin-check-action branch September 27, 2024 15:03
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants