rector/.github/workflows/phpstan.yaml
2020-05-02 11:47:43 +02:00

22 lines
632 B
YAML

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