Skip to content

Instantly share code, notes, and snippets.

@NickGreen
Created July 17, 2020 22:07
Show Gist options
  • Select an option

  • Save NickGreen/e6b0452ba920a808669f40a11a5331e8 to your computer and use it in GitHub Desktop.

Select an option

Save NickGreen/e6b0452ba920a808669f40a11a5331e8 to your computer and use it in GitHub Desktop.
GH action for running PHPCS checks
on: pull_request
name: Code tests
jobs:
runPHPCSInspection:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run PHPCS inspection
uses: rtCamp/action-phpcs-code-review@master
env:
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
SKIP_FOLDERS: "tests,.github"
with:
args: "WordPress-Extra"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment