Skip to content

Revert "Advandtage+ Shoppings Ads support in Advertise tab" #1361

Revert "Advandtage+ Shoppings Ads support in Advertise tab"

Revert "Advandtage+ Shoppings Ads support in Advertise tab" #1361

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:
# TODO: Update to PHP8.2 once WPCS (3.0) and woocommerce-sniffs (> 0.1.3) are updated to latest versions.
php-version: 8.0
tools: cs2pr
- name: Log PHPCS information
run: vendor/bin/phpcs -i
- name: Run PHPCS on all files
run: vendor/bin/phpcs -q -n --report=checkstyle | cs2pr
- name: PHP Syntax checker
uses: StephaneBour/[email protected]