Replace squizlabs/php_codesniffer by symplify/easy-coding-standard #39
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: 'Quality' | |
on: | |
push: | |
branches: ['*'] | |
jobs: | |
ecs: | |
name: 'Easy Coding Standard' | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
php-version: ['8.1', '8.3'] | |
steps: | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '${{ matrix.php-version }}' | |
coverage: 'none' | |
- name: 'Checkout sources' | |
uses: 'actions/checkout@v3' | |
- name: 'Install dependencies' | |
run: 'composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist' | |
- name: 'Execute Easy Coding Standard' | |
run: 'vendor/bin/ecs' | |
phpstan: | |
name: 'PHPStan' | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
php-version: ['8.1', '8.3'] | |
steps: | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '${{ matrix.php-version }}' | |
coverage: 'none' | |
- name: 'Checkout sources' | |
uses: 'actions/checkout@v3' | |
- name: 'Install dependencies' | |
run: 'composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist' | |
- name: 'Execute PHPStan' | |
run: 'vendor/bin/phpstan' |