diff --git a/.github/workflows/reusable-testing.yml b/.github/workflows/reusable-testing.yml index 0628999..9bc5755 100644 --- a/.github/workflows/reusable-testing.yml +++ b/.github/workflows/reusable-testing.yml @@ -406,12 +406,18 @@ jobs: WP_CLI_TEST_DBSOCKET: '${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock' WP_CLI_TEST_COVERAGE: ${{ matrix.coverage }} run: | + ARGS=() + + if [[ $WP_CLI_TEST_COVERAGE == 'true' ]]; then + ARGS+=("--xdebug") + fi + if [[ $RUNNER_DEBUG == '1' ]]; then - composer behat -- --format=pretty || composer behat-rerun -- --format=pretty - else - composer behat || composer behat-rerun + ARGS+=("--format=pretty") fi + composer behat -- "${ARGS[@]}" || composer behat-rerun -- "${ARGS[@]}" + - name: Retrieve list of coverage files id: coverage_files if: ${{ matrix.coverage }}