Skip to content

A GitHub Action that runs the WP.org Code Analysis Tool on your plugin or theme.

License

Notifications You must be signed in to change notification settings

pantheon-systems/action-wporg-validator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP.org Plugin/Theme Validator Action

GitHub Workflow Status GitHub Workflow Status MIT License GitHub release (latest by date)

A GitHub Action that runs the WP.org Code Analysis Tool on your plugin or theme.

What's this do?

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.

Why should I use it?

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.

Inputs

type

Required The type of code to scan. Either plugin or theme.

Example usage

uses: pantheon-systems/action-wporg-validator@v1
with:
  type: 'plugin'

Badges

If you want to show that you're using the tool in your README files, you can use the following markdown:

Plugins

[![WP.org Plugin Validator](https://img.shields.io/github/actions/workflow/status/<your-github-user>/<your-plugin-repository>/<your-workflow>.yml?label=plugin%20validator&logo=wordpress)](https://github.com/<your-github-user>/<your-plugin-repository>/actions)

Themes

[![WP.org Theme Validator](https://img.shields.io/github/actions/workflow/status/<your-github-user>/<your-theme-repository>/<your-workflow>.yml?label=theme%20validator&logo=wordpress)](https://github.com/<your-github-user>/<your-plugin-repository>/actions)

About

A GitHub Action that runs the WP.org Code Analysis Tool on your plugin or theme.

Resources

License

Stars

Watchers

Forks

Packages

No packages published