-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 959 Bytes
/
test.yml
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
name: test
on: [push]
jobs:
test:
strategy:
matrix:
luaVersion:
- "5.1"
- "5.2"
- "5.3"
- "luajit-2.0.4" # Version used by Garry's Mod
- "luajit-2.0.5"
- "luajit-2.1.0-beta3"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@v5
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@v2
- name: Dependencies
run: |
luarocks install busted
luarocks install moonscript
luarocks install LuaSocket
# Bug in newer cjson for Lua >= 5.2
if [ "${{ matrix.luaVersion }}" = "5.2" ] ||
[ "${{ matrix.luaVersion }}" = "5.3" ]; then
luarocks install lua-cjson 2.1.0-1;
else
luarocks install lua-cjson;
fi
luarocks install luafilesystem
- name: Test
run: |
make test