1name: Static analysis 2 3on: [push, pull_request] 4 5jobs: 6 run: 7 if: ${{ !startsWith(github.event.head_commit.message, 'Translation: ') }} 8 runs-on: ubuntu-latest 9 name: phpstan 10 11 steps: 12 - uses: actions/checkout@v2 13 14 - run: composer validate 15 16 - run: composer global require phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules phpstan/phpstan-strict-rules phpstan/phpstan-phpunit 17 18 - run: composer install --no-progress 19 20 - run: ~/.composer/vendor/bin/phpstan analyze --no-progress --level=max app modules_v4 index.php 21