From 33b6f075d31ba76c730ab0008ef2c798372046f6 Mon Sep 17 00:00:00 2001 From: mefellows Date: Wed, 20 Dec 2023 12:21:00 +1100 Subject: [PATCH] Revert "chore(ci): break out of loop when not in a dir/example" This reverts commit c0286dba554f476f1bef6096284a96c43533c227. --- scripts/ci/test-examples.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ci/test-examples.sh b/scripts/ci/test-examples.sh index bb8e0ce22..a6d5ebccb 100755 --- a/scripts/ci/test-examples.sh +++ b/scripts/ci/test-examples.sh @@ -12,8 +12,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" # Figure out where the echo "Running e2e examples build for node version $(node --version)" for i in examples/*; do - [ -d "$i" ] || break # prevent failure if not a directory - [ -e "$i" ] || break # prevent failure if there are no examples + [ -d "$i" ] || continue # prevent failure if not a directory + [ -e "$i" ] || continue # prevent failure if there are no examples echo "--> running tests for: $i" pushd "$i" # replace pact dependency with locally build version @@ -42,8 +42,8 @@ echo "Running Vx examples build" # trap "docker kill $BROKER_ID" EXIT for i in examples/v*/*; do - [ -d "$i" ] || break # prevent failure if not a directory - [ -e "$i" ] || break # prevent failure if there are no examples + [ -d "$i" ] || continue # prevent failure if not a directory + [ -e "$i" ] || continue # prevent failure if there are no examples echo "------------------------------------------------" echo "------------> continuing to test V3/v$ example project: $i" node --version