patch #1157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |