Skip to content

Commit

Permalink
Return an error in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Apr 27, 2024
1 parent f9b4ff5 commit b7f1cad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions program-test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b7f1cad

Please sign in to comment.