Skip to content

Commit

Permalink
Add PHPStan checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tattali committed May 3, 2024
1 parent ddf8f52 commit f72fbe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
stability: [prefer-stable]
minimum-stability: [stable]
symfony-version: [7.0.*]
is-current: [true]
include:
- php: '8.3'
symfony-version: 7.0.*
Expand All @@ -34,7 +35,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
key: composer-packages-${{ hashFiles('composer.lock') }}

- uses: shivammathur/setup-php@v2
with:
Expand All @@ -51,10 +52,11 @@ jobs:
composer update --no-interaction --prefer-dist
- name: PHP-CS-Fixer
continue-on-error: true
if: ${{ matrix.is-current }}
run: vendor/bin/php-cs-fixer fix --ansi -v --dry-run

- name: PHPStan
if: ${{ matrix.is-current }}
run: vendor/bin/phpstan analyse src tests --level 9

- name: Execute tests
Expand Down

0 comments on commit f72fbe9

Please sign in to comment.