Created
July 17, 2020 22:07
-
-
Save NickGreen/e6b0452ba920a808669f40a11a5331e8 to your computer and use it in GitHub Desktop.
GH action for running PHPCS checks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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