Skip to content

Bump @wordpress/env from 10.39.0 to 11.6.0 #9

Bump @wordpress/env from 10.39.0 to 11.6.0

Bump @wordpress/env from 10.39.0 to 11.6.0 #9

name: Code Quality PHP
on:
push:
pull_request:
# Allow manually triggering the workflow.
workflow_dispatch:
permissions:
contents: read
jobs:
code-quality:
name: Run Code Quality Checks
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
php: ["8.2", "8.3", "8.4"]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PHP and tools
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
with:
php-version: ${{ matrix.php }}
tools: composer:v2, cs2pr, phpcs
- name: Validate composer.json
run: composer validate --strict
- name: Install Composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0
with:
composer-options: "--prefer-dist --no-progress"
- name: Run PHP syntax linting
run: composer run-script lint
- name: Run PHP CodeSniffer
run: |
vendor/bin/phpcs -- --standard=phpcs.xml --report-checkstyle=./phpcs-report.xml
cs2pr ./phpcs-report.xml