xref: /webtrees/.github/workflows/phpstan.yaml (revision 6bf0af166b27d50bc0dc213975b1116b197adb10)
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@v2
12
13      - run: composer validate
14
15      - run: composer global require phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules phpstan/phpstan-strict-rules phpstan/phpstan-phpunit
16
17      - run: composer install --no-progress
18
19      - run: ~/.composer/vendor/bin/phpstan analyze --no-progress --level=max app modules_v4 index.php
20