Keep Plugin Check quiet about files that never ship #2
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
| name: Plugin Check | |
| # Runs the official WordPress.org Plugin Check against the plugin, the same tool | |
| # the directory reviewers use. Runs on every push and pull request, and again as | |
| # a gate in front of the deploy workflow so a release cannot go out with an error | |
| # the directory would reject. | |
| # | |
| # Errors fail the run; warnings are reported as annotations without failing it. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| plugin-check: | |
| name: WordPress.org Plugin Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checked out under the plugin slug: the action derives the plugin folder | |
| # name from this directory, and a folder that does not match the slug | |
| # trips the directory's own naming checks. | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| path: captchaapi | |
| # The check runs against the repository, but the zip is built with | |
| # .distignore applied. Without these, every run reports development files | |
| # that never ship - and three standing warnings are how a real one gets | |
| # overlooked. Keep this list in step with .distignore. | |
| - name: Run Plugin Check | |
| uses: WordPress/plugin-check-action@v1.1.7 | |
| with: | |
| build-dir: ./captchaapi | |
| slug: captchaapi | |
| exclude-directories: | | |
| .github | |
| .githooks | |
| .wordpress-org | |
| exclude-files: | | |
| .gitignore | |
| .distignore |