1name: Static analysis 2 3on: [push, pull_request] 4 5jobs: 6 run: 7 runs-on: ubuntu-latest 8 name: phpstan 9 10 steps: 11 - uses: actions/checkout@v1 12 with: 13 fetch-depth: 1 14 15 - uses: shivammathur/setup-php@master 16 with: 17 php-version: 7.4 18 extension-csv: gd,intl,sqlite,zip 19 coverage: disable 20 21 - run: composer global require phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules phpstan/phpstan-strict-rules phpstan/phpstan-phpunit 22 23 - run: composer install --no-progress --no-suggest --ignore-platform-reqs 24 25 - run: ~/.composer/vendor/bin/phpstan analyze --no-progress --level=max app modules_v4 index.php 26