Remove phpcs Github action in favor of running phpcs directly (#35237)

This commit is contained in:
Sam Seay 2022-10-25 20:17:38 +13:00 committed by GitHub
parent a5e3215f23
commit 197c43e557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 6 deletions

View File

@ -42,6 +42,7 @@ runs:
with:
php-version: ${{ inputs.php-version }}
coverage: none
tools: cs2pr, phpcs
- name: Cache Composer Dependencies
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77

View File

@ -16,20 +16,26 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@v32
with:
files: |
**/*.php
- name: Setup WooCommerce Monorepo
if: steps.changed-files.outputs.any_changed == 'true'
uses: ./.github/actions/setup-woocommerce-monorepo
with:
build: false
- name: Tool versions
if: steps.changed-files.outputs.any_changed == 'true'
run: |
php --version
composer --version
- name: Run code sniffer
uses: thenabeel/action-phpcs@v8
with:
files: "**.php"
phpcs_path: plugins/woocommerce/vendor/bin/phpcs
standard: phpcs.xml
- name: Run PHPCS
if: steps.changed-files.outputs.any_changed == 'true'
run: ./plugins/woocommerce/vendor/bin/phpcs -n -q --report=checkstyle ${{ steps.changed-files.outputs.all_changed_files }} | cs2pr