diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 0d0a11e..53b3778 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -6,14 +6,15 @@ jobs: runPHPCSInspection: name: Run PHPCS inspection runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 with: - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.event.pull_request.head.sha }} - name: Run PHPCS inspection uses: rtCamp/action-phpcs-code-review@v2.0.3 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"