Skip to content

Merge pull request #35 from linchpin/dependabot/github_actions/dot-gi… #25

Merge pull request #35 from linchpin/dependabot/github_actions/dot-gi…

Merge pull request #35 from linchpin/dependabot/github_actions/dot-gi… #25

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"