We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8bae5d + 4365bc4 commit 2e25f09Copy full SHA for 2e25f09
.github/workflows/reusable-testing.yml
@@ -406,12 +406,18 @@ jobs:
406
WP_CLI_TEST_DBSOCKET: '${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock'
407
WP_CLI_TEST_COVERAGE: ${{ matrix.coverage }}
408
run: |
409
+ ARGS=()
410
+
411
+ if [[ $WP_CLI_TEST_COVERAGE == 'true' ]]; then
412
+ ARGS+=("--xdebug")
413
+ fi
414
415
if [[ $RUNNER_DEBUG == '1' ]]; then
- composer behat -- --format=pretty || composer behat-rerun -- --format=pretty
- else
- composer behat || composer behat-rerun
416
+ ARGS+=("--format=pretty")
417
fi
418
419
+ composer behat -- "${ARGS[@]}" || composer behat-rerun -- "${ARGS[@]}"
420
421
- name: Retrieve list of coverage files
422
id: coverage_files
423
if: ${{ matrix.coverage }}
0 commit comments