Skip to content

patch

patch #1149

Workflow file for this run

name: PHP_CodeSniffer
on:
push:
branches: [ devel ]
pull_request:
push:
branches: [ stable ]
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
tools: composer, cs2pr
- name: Install PHP_CodeSniffer
run: |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --version
- name: Detect coding standard violations
run: php phpcs.phar --standard=$GITHUB_WORKSPACE/phpcs.xml --colors -n $GITHUB_WORKSPACE --ignore=libs/PHPMailer