Skip to content

Merge pull request #282 from dshanske/classicpress #203

Merge pull request #282 from dshanske/classicpress

Merge pull request #282 from dshanske/classicpress #203

Workflow file for this run

name: PHP_CodeSniffer
on: [push, pull_request]
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer, cs2pr
- name: Install Composer dependencies for PHP
uses: "ramsey/composer-install@v2"
- name: Check PHP code style
id: phpcs
run: composer phpcs -- --config-set ignore_warnings_on_exit 1 --no-cache --report-full --report-checkstyle=./phpcs-report.xml
- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml