-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.08 KB
/
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
44
45
46
47
48
name: test
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@master
- name: setup
run: |
luarocks install .github/workflows/lua-llthreads2-0.1.6-1.rockspec
luarocks --server=https://luarocks.org/dev install carray
luarocks --server=https://luarocks.org/dev install mtmsg
luarocks make rockspecs/mtstates-scm-0.rockspec
- name: test
run: |
set -e
lua -v
cd tests
lua test01.lua
lua test02.lua
lua test03.lua
lua test04.lua
lua test05.lua
cd ../examples
lua example01.lua
lua example02.lua
lua example03.lua
lua example04.lua
lua example05.lua
lua example06.lua