PHPStan / Code sniffer #806
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: PHPStan / Code sniffer | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['8.1'] | |
name: PHP ${{ matrix.php-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl, apcu | |
ini-values: apc.enable_cli = 1 | |
- name: Update composer | |
run: composer self-update | |
- name: Validate composer.json | |
run: composer validate | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-progress --no-suggest --prefer-stable | |
- name: Bake factories to perform analysis in the following steps | |
run : vendor/bin/phpunit tests/TestCase/Command/BakeFixtureFactoryCommandTest.php | |
- name: Run phpstan | |
run: composer stan | |
- name: Run phpcs | |
run: composer cs-check | |
- name: Run psalm | |
run: composer psalm |