diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 265e368..3de4a7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,9 @@ jobs: for i in $(seq 1 5) do $ZIG build test --summary all --verbose && break || sleep 1 + if [[ $i == 5 ]]; then + exit 1 + fi done integration-test: diff --git a/program-test/test.sh b/program-test/test.sh index b1837ac..35bb340 100755 --- a/program-test/test.sh +++ b/program-test/test.sh @@ -9,5 +9,8 @@ set -e for i in $(seq 1 5) do $ZIG build --summary all --verbose && break || sleep 1 + if [[ $i == 5 ]]; then + exit 1 + fi done SBF_OUT_DIR="$ROOT_DIR/zig-out/lib" cargo test --manifest-path "$ROOT_DIR/program-test/Cargo.toml"