Skip to content

Commit 669e1af

Browse files
committed
Use pretty Behat output if debug logging is on
1 parent 0366bd5 commit 669e1af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/reusable-testing.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,12 @@ jobs:
405405
WP_CLI_TEST_DBTYPE: ${{ matrix.dbtype || 'mysql' }}
406406
WP_CLI_TEST_DBSOCKET: '${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock'
407407
WP_CLI_TEST_COVERAGE: ${{ matrix.coverage }}
408-
run: composer behat || composer behat-rerun
408+
run: |
409+
if [[ $RUNNER_DEBUG == '1' ]]; then
410+
composer behat -- --format=pretty || composer behat-rerun -- --format=pretty
411+
else
412+
composer behat || composer behat-rerun
413+
fi
409414
410415
- name: Retrieve list of coverage files
411416
id: coverage_files

0 commit comments

Comments
 (0)