name: Static Analysis

on:
    pull_request: null
    push:
        branches:
            - master

jobs:
    phpstan:
        runs-on: ubuntu-latest
        steps:
            -   uses: actions/checkout@v2
            -   uses: shivammathur/setup-php@v1
                with:
                    php-version: 7.3
                    coverage: none
            -   run: composer install --no-progress
            -   run: composer phpstan

name: Static Analysis

on:
    pull_request: null
    push:
        branches:
            - master

jobs:
    phpstan:
        runs-on: ubuntu-latest
        steps:
            -   uses: actions/checkout@v2
            -   uses: shivammathur/setup-php@v1
                with:
                    php-version: 7.3
                    coverage: none
            -   run: |
                    composer install --no-progress
                    composer require staabm/annotate-pull-request-from-checkstyle:^1.0
            -   run: composer phpstan --error-format=checkstyle | vendor/bin/cs2pr

Annotate a Github Pull Request based on a Checkstyle XML-report
github-action: Annotate a Github Pull Request based on a Checkstyle XML-report