Skip to content

fix: update hook names for consistency & fix bug with credentials being sent in headers when IDE is not authenticated #352

fix: update hook names for consistency & fix bug with credentials being sent in headers when IDE is not authenticated

fix: update hook names for consistency & fix bug with credentials being sent in headers when IDE is not authenticated #352

name: WordPress Coding Standards
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
run:
runs-on: ubuntu-latest
name: PHPCS
strategy:
matrix:
php: [8.1]
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: '--no-progress'
- name: Run PHPCS
run: composer run-script check-cs