Skip to content

Commit c754a60

Browse files
Merge pull request #360 from alexislefebvre/chore-hide-output-from-composer-before-running-PHPStan-on-CI
chore: hide output from Composer before running PHPStan on CI
2 parents 5704b4f + 48fccb4 commit c754a60

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/qa.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ jobs:
3030

3131
- name: ✅ PHPStan
3232
uses: docker://jakzal/phpqa:1.111-php8.3-alpine
33-
with:
34-
args: phpstan analyse --configuration ./.qa/phpstan.neon --no-progress
3533
env:
36-
COMPOSER_IGNORE_PLATFORM_REQ: ext-mongodb
34+
COMPOSER_IGNORE_PLATFORM_REQ: ext-mongodb
35+
# this will hide the output of the automatic call to `composer install`
36+
SHELL_VERBOSITY: -1
37+
with:
38+
# `SHELL_VERBOSITY=0` will restore the default verbosity, so that PHPStan output the results
39+
args: sh -c "SHELL_VERBOSITY=0 phpstan analyse --configuration ./.qa/phpstan.neon --no-progress"
3740

3841
composer-validate:
3942
name: 🎵 Composer validate

0 commit comments

Comments
 (0)