Skip to content

[DONT MERGE YET] Rename from Google Listings and Ads to Google for WooCommerce #2951

[DONT MERGE YET] Rename from Google Listings and Ads to Google for WooCommerce

[DONT MERGE YET] Rename from Google Listings and Ads to Google for WooCommerce #2951

name: PHP Coding Standards
on:
push:
branches:
- trunk
- develop
paths:
- "**.php"
- .github/workflows/php-coding-standards.yml
pull_request:
paths:
- "**.php"
- .github/workflows/php-coding-standards.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpcs:
name: PHP coding standards
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Prepare PHP
uses: woocommerce/grow/prepare-php@actions-v1
with:
tools: cs2pr
- name: Log PHPCS information
run: vendor/bin/phpcs -i
- name: Run PHPCS on all files
run: vendor/bin/phpcs ./* -q --report=checkstyle | cs2pr
- name: Run PHPCS on all tests
run: vendor/bin/phpcs -q --standard=tests/phpcs.xml.dist --report=checkstyle | cs2pr