A GitHub Action that runs the WP.org Code Analysis Tool on your plugin or theme.
This GitHub Action is deprecated and will not receive updates. It is provided for informational purposes only. Since this action was created, a new WordPress Plugin Check Action has been created by the WordPress.org team, which is a more robust and maintained solution for validating plugins against the WordPress.org repository standards.
If you are currently using this action, we recommend switching to the WordPress Plugin Check Action. Switching should be an easy, drop-in replacement, as the Plugin Check Action runs in the current directory by default. For more information on how to use the WordPress Plugin Check Action, see the Plugin Check Action README.
The (experimental) WP.org Code Analysis Tool includes, at its core, a PHPCS ruleset that can be run on WordPress plugins or themes to validate whether the code should be accepted into the WordPress.org repository. However, the ruleset cannot simply be installed and added as a PHPCS standard because it was never built as a standalone standard. This GitHub Action installs the WP.org Code Analysis Tool and its dependencies, then simply runs the PHPCS checks with the appropriate ruleset on your plugin or theme.
If you have a plugin or theme in the WordPress.org repository, you can add this to your build pipeline to validate your plugin or theme before cutting a release and deploying the update to WP.org. This can be used alongside and independent of any other PHPCS or code quality checks you may already have in place.
Required The type of code to scan. Either plugin or theme.
uses: pantheon-systems/action-wporg-validator@v1
with:
type: 'plugin'If you want to show that you're using the tool in your README files, you can use the following markdown:
[](https://github.com/<your-github-user>/<your-plugin-repository>/actions)[](https://github.com/<your-github-user>/<your-plugin-repository>/actions)