Skip to content

Commit 2d842fb

Browse files
authored
(ci) add separate luacheck step and generation check (#53)
1 parent 35ed97a commit 2d842fb

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,25 @@ jobs:
1919

2020
- uses: leafo/gh-actions-luarocks@v4.0.0
2121

22-
- name: build
22+
- name: make_dev
2323
run: |
24-
luarocks install busted
24+
make dev
2525
luarocks make
2626
27+
- name: check_generation
28+
run: |
29+
cp inspect.lua inspect.lua.bak
30+
make gen
31+
if ! cmp --silent inspect.lua inspect.lua.bak ; then
32+
echo "The generated inspect.lua is different from the one in the repo." \
33+
"Please make your modifications in inspect.tl, regenerate with 'make dev && make'," \
34+
"and commit both inspect.tl and inspect.lua in your Pull Request"
35+
exit 1
36+
fi
37+
38+
- name: luacheck
39+
run: luacheck inspect.lua
40+
2741
- name: test
2842
run: |
2943
busted -o utfTerminal

0 commit comments

Comments
 (0)