Actions: set -euo pipefail on multi-cmd runs (#106906)

This commit is contained in:
Mariell Hoversholm
2025-06-18 15:50:30 +02:00
committed by GitHub
parent afee9e47f2
commit 24192745b6
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -59,6 +59,7 @@ jobs:
- name: Build E2E test runner
id: artifact
run: |
set -euo pipefail
# We want a static binary, so we need to set CGO_ENABLED=0
CGO_ENABLED=0 go build -o ./e2e-runner ./e2e/
echo "artifact=e2e-runner-${{github.run_number}}" >> "$GITHUB_OUTPUT"
@@ -127,6 +128,7 @@ jobs:
env:
SUITE: ${{ matrix.path }}
run: |
set -euo pipefail
echo "suite=$(echo "$SUITE" | sed 's/\//-/g')" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
if: success() || failure()