From 293f08d8de79c59cc0fcf1d1be5843a224fb3e03 Mon Sep 17 00:00:00 2001 From: craxtech <34967632+craxtech@users.noreply.github.com> Date: Sat, 9 Oct 2021 13:58:39 -0400 Subject: [PATCH] Create phpcs.yml --- .github/workflows/phpcs.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/phpcs.yml diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml new file mode 100644 index 0000000..53b3778 --- /dev/null +++ b/.github/workflows/phpcs.yml @@ -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/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"