From 3c1757575e8c2345100be76003c184750822799e Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 30 Apr 2020 09:44:22 +0200 Subject: [PATCH] Annotate phpstan errors in pull requests Utilizing https://github.com/staabm/annotate-pull-request-from-checkstyle --- .github/workflows/phpstan.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e2cb477f1..967f79dcd 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -34,6 +34,7 @@ jobs: extensions: "intl" ini-values: "memory_limit=-1" php-version: "${{ matrix.php-version }}" + tools: "cs2pr" - name: "Determine composer cache directory" id: "determine-composer-cache-directory" @@ -52,4 +53,4 @@ jobs: - name: Run PHPStan run: | bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --with-all-dependencies - vendor/bin/phpstan analyse --configuration=phpstan/config.neon + vendor/bin/phpstan analyse --configuration=phpstan/config.neon --error-format=checkstyle | cs2pr