Skip to content

Commit 31a924b

Browse files
authored
Print infection output instead of uploading the log as artifact
1 parent 9b118ac commit 31a924b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
php-version: "${{ matrix.php-version }}"
170170
ini-file: development
171171
extensions: pdo, mysqli, pgsql, pdo_mysql, pdo_pgsql, pdo_sqlite, mongodb
172-
tools: infection:0.31.4
172+
tools: infection:0.31.6
173173

174174
- name: "Allow installing on PHP 8.4"
175175
if: matrix.php-version == '8.4'
@@ -186,13 +186,15 @@ jobs:
186186
- name: "Run infection"
187187
run: |
188188
git fetch --depth=1 origin $GITHUB_BASE_REF
189-
infection --git-diff-base=origin/$GITHUB_BASE_REF --git-diff-lines --ignore-msi-with-no-mutations --min-msi=100 --min-covered-msi=100 --log-verbosity=all --debug
190-
191-
- uses: "actions/upload-artifact@v4"
192-
if: always()
193-
with:
194-
name: "infection-log-${{ matrix.php-version }}"
195-
path: "tmp/infection.log"
189+
infection \
190+
--git-diff-base=origin/$GITHUB_BASE_REF \
191+
--git-diff-lines \
192+
--ignore-msi-with-no-mutations \
193+
--min-msi=100 \
194+
--min-covered-msi=100 \
195+
--log-verbosity=all \
196+
--debug \
197+
--logger-text=php://stdout
196198
197199
static-analysis:
198200
name: "PHPStan"

0 commit comments

Comments
 (0)