diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 91fe73a..691b1e7 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -19,13 +19,21 @@ jobs: id: gha-extract-shell-scripts - name: Test extracted run: | - output="$(cat "workflow_scripts/${{ env.workflow_file }}/job=Test/step=Test_extracted.sh")" - [[ "${output}" == "${expected}" ]] || exit 1 + output_file="workflow_scripts/${{ env.workflow_file }}/job=Test/step=Test_extracted.sh" + if [[ ! -f "$output_file" ]]; then + find . + exit 1 + fi + [[ "$(cat "${output_file}")" == "${expected}" ]] || exit 1 env: expected: | #!/usr/bin/bash set -e # --- - output="$(cat "workflow_scripts/:env.workflow_file:/job=Test/step=Test_extracted.sh")" - [[ "${output}" == "${expected}" ]] || exit 1 + output_file="workflow_scripts/:env.workflow_file:/job=Test/step=Test_extracted.sh" + if [[ ! -f "$output_file" ]]; then + find . + exit 1 + fi + [[ "$(cat "${output_file}")" == "${expected}" ]] || exit 1 workflow_file: integration-tests.yaml