From 4177e64d4b99697a85fcd5980901692f8a488fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Wed, 5 Jun 2024 03:48:21 +0000 Subject: [PATCH] Check exit code --- .ci-scripts/check-code-samples.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ci-scripts/check-code-samples.bash b/.ci-scripts/check-code-samples.bash index 243b27c0..2c09a283 100755 --- a/.ci-scripts/check-code-samples.bash +++ b/.ci-scripts/check-code-samples.bash @@ -1,6 +1,6 @@ #!/bin/bash -set -e +#set -e set -u cd ./code-samples/ @@ -14,6 +14,11 @@ for file in *.pony; do percentage=$(((i*100)/files)) echo -e "#$i Test $file … ($i/$files \u2192 $percentage %)" docker run -v $(pwd):/src/main docker://ghcr.io/ponylang/ponyc:latest + if [ $? -eq 0 ]; then + echo -e "\e[1;32m\u2705 File fulfilled expectations\e[0m" + else + echo -e "\e[1;32m\u2705 File fulfilled expectations\e[0m" + else done runnableFiles=$((files-notRunnable)) if [ "${#failedFiles[@]}" != 0 ]; then