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