Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Dec 18, 2024
1 parent 91aad8e commit ca243ee
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ca243ee

Please sign in to comment.