mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
22 lines
632 B
YAML
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
|