Skip to content

Commit b6d94e5

Browse files
committed
Added new ci steps to rerun all script unit tests with the scripts squished by SQUISH.LUA
1 parent 3795edb commit b6d94e5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/LuaScripts.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,28 @@ jobs:
3030
exit 1
3131
fi
3232
33+
cd $WD
34+
done
35+
36+
- name: Squish all scripts
37+
run: |
38+
find . -name "*.LUA" -type f -exec util/SQUISH.LUA {} +
39+
40+
- name: Run unit tests again on squished versions of script
41+
run: |
42+
set -e
43+
WD=$(pwd)
44+
TEST=$(find test -name test.sh -executable -print)
45+
for file in $TEST; do
46+
echo
47+
echo "### Running $file ###"
48+
echo
49+
cd $(dirname $file)
50+
if ! ./$(basename "$file"); then
51+
echo "Error: Script $file failed!"
52+
cd "$WD"
53+
exit 1
54+
fi
55+
3356
cd $WD
3457
done

0 commit comments

Comments
 (0)