Skip to content

Commit a8021df

Browse files
committed
Add Lua script check step to GitHub Actions workflow
Introduce a new job to validate Lua demo scripts in the CI pipeline. This ensures that executable Lua scripts in the `demo/minimum` directory are properly tested before proceeding with the Watcom build. The Watcom job is updated to depend on the Lua job.
1 parent fcfdc4a commit a8021df

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,23 @@ name: Lua for Watcom
33
on: push
44

55
jobs:
6+
Lua:
7+
name: Demo Script Check
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install Tools
11+
run: |
12+
sudo apt-get update
13+
sudo apt-get install -y lua
14+
lua -v
15+
16+
- name: Test Lua Demo scripts
17+
run: |
18+
for file in demo/minimum/*.lua; do if [ -x "$file" ]; then echo -e "\n>> ./$file"; yes "" | "$file"; fi done
19+
620
Watcom:
721
name: Build Lua with Open Watcom
22+
needs: Lua
823
runs-on: ubuntu-latest
924

1025
steps:

0 commit comments

Comments
 (0)