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