Skip to content

An example plugin repository with a workflow script that runs PHP CodeSniffer and PHPUnit

License

Notifications You must be signed in to change notification settings

Automattic/githubdeployments-phpunit-phpcs-example

Repository files navigation

githubdeployments-phpunit-phpcs-example

An example plugin repository with a workflow script that runs PHP CodeSniffer and PHPUnit.

The workflow does the following:

  • Checkout the repository
  • Runs the composer action which executes the default command, composter install.
  • Runs the composer action again with a custom command that runs PHPCodeSniffer
  • Runs the composer action again with a custom command that runs PHPUnit
  • If all previous actions completely without error, it creates a build artifact with name "wpcom" which is required for WordPress.com's GitHub Deployment feature

About

An example plugin repository with a workflow script that runs PHP CodeSniffer and PHPUnit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages