xref: /webtrees/.github/workflows/phpstan.yaml (revision 0d047a8c74753c7558a60f4789c838996d6fae8b)
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