-
Notifications
You must be signed in to change notification settings - Fork 23
87 lines (70 loc) · 1.87 KB
/
test.yml
File metadata and controls
87 lines (70 loc) · 1.87 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: test
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1.5", "5.2.4", "5.3.5", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@master
- name: test lua
run: lua -e 'print("hi from lua")'
- name: test luarocks
run: |
echo $PATH
env | grep LUA
luarocks
luarocks path
luarocks install moonscript
lua -e 'require("moon").p({1,2,3})'
test-luarocks-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: "5.2"
- uses: leafo/gh-actions-luarocks@master
with:
luaRocksVersion: "2.4.4"
- name: test luarocks
run: |
luarocks --version
luarocks path
luarocks install moonscript
lua -e 'require("moon").p({1,2,3})'
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
- uses: leafo/gh-actions-luarocks@master
- name: test luarocks
run: |
echo $PATH
env | grep LUA
luarocks
luarocks path
luarocks install moonscript
lua -e 'require("moon").p({1,2,3})'
test-openresty:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-openresty@main
- uses: leafo/gh-actions-luarocks@master
with:
withLuaPath: "/usr/local/openresty/luajit/"
- name: test luarocks
run: |
echo $PATH
env | grep LUA
luarocks
luarocks path
luarocks install pgmoon