mirror of
https://github.com/kikito/inspect.lua.git
synced 2024-12-15 14:34:21 +00:00
(ci) add separate luacheck step and generation check (#53)
This commit is contained in:
parent
35ed97a2d7
commit
2d842fb78b
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -19,11 +19,25 @@ jobs:
|
||||
|
||||
- uses: leafo/gh-actions-luarocks@v4.0.0
|
||||
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user