name: Static Analysis (only informative)

on: [push, pull_request]

jobs:
    phpstan:
        name: PHPStan
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v3
            - uses: shivammathur/setup-php@v2
              with:
                  php-version: 8.0
                  coverage: none

            - run: composer install --no-progress --prefer-dist
            - run: composer phpstan -- --no-progress
              continue-on-error: true # is only informative
