Skip to content

Commit

Permalink
Merge pull request #19 from wpugph/phpcs
Browse files Browse the repository at this point in the history
Phpcs run for the first time
  • Loading branch information
carl-alberto authored Oct 9, 2021
2 parents 3dc1378 + 3c45481 commit d892b91
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run PHPCS on pull requests

on: pull_request

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/[email protected]
env:
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
SKIP_FOLDERS: "tests,.github"
PHPCS_SNIFFS_EXCLUDE: "WordPress.Files.FileName"
with:
args: "WordPress,WordPress-Core,WordPress-Docs"

0 comments on commit d892b91

Please sign in to comment.