2525 required : false
2626 type : string
2727 composer-command :
28- description : Composer command to run.
29- default : |-
30- composer update \
31- --prefer-dist \
32- --no-interaction \
33- --no-progress \
34- --optimize-autoloader \
35- --ansi
28+ description : Composer command (install or update) to run.
29+ default : update
30+ required : false
31+ type : string
32+ composer-flags :
33+ description : Additional composer flags
34+ default : >-
35+ --prefer-dist
36+ --no-interaction
37+ --no-progress
38+ --optimize-autoloader
39+ --ansi
3640 required : false
3741 type : string
3842 composer-version :
@@ -136,6 +140,7 @@ jobs:
136140 with :
137141 auth-token : ${{ secrets.AUTH_TOKEN }}
138142 composer-command : ${{ inputs.composer-command }}
143+ composer-flags : ${{ inputs.composer-flags }}
139144 composer-version : ${{ inputs.composer-version }}
140145 coverage-driver : ${{ inputs.coverage-driver }}
141146 extensions : ${{ inputs.extensions }}
@@ -159,19 +164,19 @@ jobs:
159164 - name : Run PHPStan (build cache).
160165 if : ${{ inputs.phpstan }}
161166 shell : bash
162- run : | -
163- vendor/bin/phpstan \
164- --configuration="${{ inputs.phpstan-configuration }}" \
165- analyse
167+ run : > -
168+ vendor/bin/phpstan
169+ --configuration="${{ inputs.phpstan-configuration }}"
170+ analyse
166171
167172 - name : Run infection.
168173 shell : bash
169- run : | -
170- vendor/bin/${{ inputs.command }} \
171- ${{ inputs.command-options }} \
172- ${{ inputs.command-coverage-options }} \
173- ${{ inputs.phpstan && '--static-analysis-tool=phpstan' || '' }} \
174- ${{ inputs.framework-options }}
174+ run : > -
175+ vendor/bin/${{ inputs.command }}
176+ ${{ inputs.command-options }}
177+ ${{ inputs.phpstan && '--static-analysis-tool=phpstan' || '' }}
178+ ${{ inputs.command-coverage-options }}
179+ ${{ inputs.framework-options }}
175180 env :
176181 STRYKER_DASHBOARD_API_KEY : ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
177182
0 commit comments