Skip to content

Commit 90c6c7b

Browse files
committed
Reworked CI step to exit on any error.
1 parent 423445a commit 90c6c7b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,19 @@ jobs:
1515

1616
- name: Run script unit tests
1717
run: |
18-
find test -name test.sh -executable -print -execdir ./{} \;
18+
set -e
19+
WD=$(pwd)
20+
TEST=$(find test -name test.sh -executable -print)
21+
for file in $TEST; do
22+
echo
23+
echo "### Running $file ###"
24+
echo
25+
cd $(dirname $file)
26+
if ! ./$(basename "$file"); then
27+
echo "Error: Script $file failed!"
28+
cd "$WD"
29+
exit 1
30+
fi
31+
32+
cd $WD
33+
done

0 commit comments

Comments
 (0)