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