-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(ci) add separate luacheck step and generation check (#53)
- Loading branch information
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,25 @@ jobs: | |
|
||
- uses: leafo/[email protected] | ||
|
||
- name: build | ||
- name: make_dev | ||
run: | | ||
luarocks install busted | ||
make dev | ||
luarocks make | ||
- name: check_generation | ||
run: | | ||
cp inspect.lua inspect.lua.bak | ||
make gen | ||
if ! cmp --silent inspect.lua inspect.lua.bak ; then | ||
echo "The generated inspect.lua is different from the one in the repo." \ | ||
"Please make your modifications in inspect.tl, regenerate with 'make dev && make'," \ | ||
"and commit both inspect.tl and inspect.lua in your Pull Request" | ||
exit 1 | ||
fi | ||
- name: luacheck | ||
run: luacheck inspect.lua | ||
|
||
- name: test | ||
run: | | ||
busted -o utfTerminal |