From 28a510ee61256c4701925e2921e160766db565c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Tue, 25 Oct 2022 20:35:12 +0200 Subject: [PATCH] [TASK] Use GitHub error fornating for phpstan CI --- .github/workflows/ci.yml | 2 +- composer.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bb3c9b..e39e980 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: - "json:lint" - "php:cs-fixer" - "php:sniff" - - "php:stan" + - "php:stan:github" - "ts:lint" - "yaml:lint" - "xliff:lint" diff --git a/composer.json b/composer.json index 91fc5f2..bb81019 100644 --- a/composer.json +++ b/composer.json @@ -142,6 +142,7 @@ "ci:php:lint": "find .*.php *.php Classes Configuration Tests -name '*.php' -print0 | xargs -r -0 -n 1 -P 4 php -l", "ci:php:sniff": "phpcs Classes Configuration Tests", "ci:php:stan": "phpstan --no-progress", + "ci:php:stan:github": "phpstan --no-progress --error-format=github", "ci:static": [ "@ci:composer:normalize", "@ci:json:lint", @@ -215,6 +216,7 @@ "ci:php:lint": "Lints the PHP files for syntax errors.", "ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).", "ci:php:stan": "Checks the PHP types using PHPStan.", + "ci:php:stan:github": "Checks the PHP types using PHPStan and output errors with GitHub format.", "ci:static": "Runs all static code checks (syntax, style, types).", "ci:tests:create-directories": "Creates the directories required to smoothely run the functional tests.", "ci:tests:functional": "Runs the functional tests.",