Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 625 Bytes

File metadata and controls

10 lines (8 loc) · 625 Bytes

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