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.4 coverage: none tools: cs2pr - run: composer install --no-progress --ansi # turn the phpstan errors (formatted in checkstyle-format) into github pull request check annotations - run: composer phpstan # -- --error-format=checkstyle | cs2pr