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
@@ -53,6 +53,7 @@ jobs:
env:
SHARD: ${{ matrix.shard }}
run: |
set -euo pipefail
readarray -t PACKAGES <<< "$(./scripts/ci/backend-tests/shard.sh -N"$SHARD")"
go test -short -timeout=30m "${PACKAGES[@]}"
@@ -117,6 +118,7 @@ jobs:
bucket: grafana-test-results
- if: github.repository == 'grafana/grafana' && (success() || failure())
run: |
set -euo pipefail
BUCKET_PATH="go-unit-tests/$(echo "${REF_NAME}" | sed 's/\//-/g')"
echo "BUCKET_PATH=$BUCKET_PATH" >> "$GITHUB_ENV"
env: