Set pipefail to the script

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
This commit is contained in:
Mihaela Balutoiu 2023-08-07 10:47:34 +03:00
parent 29660c0b2c
commit 1bd288f56d

View file

@ -59,7 +59,10 @@ jobs:
run: sudo mkdir -p /artifacts-logs && sudo chmod 777 /artifacts-logs
- name: Run integration tests
run: go run ./test/integration/e2e.go 2>&1 | tee /artifacts-logs/e2e.log
run: |
set -o pipefail
set -o errexit
go run ./test/integration/e2e.go 2>&1 | tee /artifacts-logs/e2e.log
env:
GARM_BASE_URL: ${{ steps.ngrok.outputs.tunnel-url }}
GARM_USERNAME: admin