-
Notifications
You must be signed in to change notification settings - Fork 199
46 lines (36 loc) · 1.06 KB
/
test.yml
File metadata and controls
46 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit", "luajit-openresty"]
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@v11
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@v5
with:
luarocksVersion: "3.12.0"
- name: make_dev
run: |
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