Skip to content

Merge pull request #46 from linchpin/upstream-merge #26

Merge pull request #46 from linchpin/upstream-merge

Merge pull request #46 from linchpin/upstream-merge #26

Workflow file for this run

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"