Compatibility fixes for new versions of PHPStan and Nette #1326
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 static analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: null | |
schedule: | |
- cron: "30 1 * * *" | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | |
name: PHPStan - PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none # disable xdebug, pcov | |
- name: Composer update | |
run: composer update --no-progress --no-interaction | |
- name: PHPStan analyse | |
run: vendor/bin/phpstan analyze src --level=max --no-progress |