Merge pull request #46 from linchpin/upstream-merge #26
This file contains 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: | |
push: | |
branches: | |
- main | |
- trunk | |
# Do not run on auto submitted branches | |
- '!**-phpcbf' | |
- '!renovate/**' | |
- '!dependabot/**' | |
- '!release-please--branches**' | |
paths: | |
- '.github/workflows/**' | |
- '**.php' | |
pull_request: | |
branches: | |
# Do not run on auto submitted branches | |
- '!**-phpcbf' | |
- '!renovate/**' | |
- '!dependabot/**' | |
- '!release-please--branches**' | |
paths: | |
- '**.php' | |
name: WordPress Coding Standards Inspections | |
jobs: | |
runPHPCSInspection: | |
name: Run PHPCS inspection | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Run PHPCS inspection | |
uses: rtCamp/[email protected] | |
env: | |
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
SKIP_FOLDERS: ".deployment,.github,assets,.husky,css,js,lib,vendor" | |
PHPCS_STANDARD_FILE_NAME: "./phpcs.xml" | |
with: | |
args: "WordPress,WordPress-Core,WordPress-Extra" |