File tree Expand file tree Collapse file tree 2 files changed +29
-25
lines changed
Expand file tree Collapse file tree 2 files changed +29
-25
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Build
22
33on :
44 push :
55 branches :
66 main
77
88jobs :
9- test-linux :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Checkout repo
13- uses : actions/checkout@master
14- - name : Install Lua
15- uses : leafo/gh-actions-lua@master
16- with :
17- luaVersion : 5.1
18- - name : Run test case
19- run : lua ./tests.lua --Linux --CI
20-
21- test-windows :
22- runs-on : windows-latest
23- steps :
24- - name : Checkout repo
25- uses : actions/checkout@master
26- - name : Download Lua5.1
27- run : curl -o Lua51.zip "https://raw.githubusercontent.com/joedf/LuaBuilds/gh-pages/hdata/lua-5.1.5_Win32_bin.zip"
28- - name : Unzip Lua51
29- run : |
30- tar -xf Lua51.zip
31- - name : Run test case
32- run : ./lua.exe ./tests.lua --CI
339 build :
3410 runs-on : windows-latest # gh-actions-lua doesn't work on windows
3511 steps :
Original file line number Diff line number Diff line change 1+ name : Test
2+ on : push
3+
4+ jobs :
5+ test-linux :
6+ runs-on : ubuntu-latest
7+ steps :
8+ - name : Checkout repo
9+ uses : actions/checkout@master
10+ - name : Install Lua
11+ uses : leafo/gh-actions-lua@master
12+ with :
13+ luaVersion : 5.1
14+ - name : Run test case
15+ run : lua ./tests.lua --Linux --CI
16+
17+ test-windows :
18+ runs-on : windows-latest
19+ steps :
20+ - name : Checkout repo
21+ uses : actions/checkout@master
22+ - name : Download Lua5.1
23+ run : curl -o Lua51.zip "https://raw.githubusercontent.com/joedf/LuaBuilds/gh-pages/hdata/lua-5.1.5_Win32_bin.zip"
24+ - name : Unzip Lua51
25+ run : |
26+ tar -xf Lua51.zip
27+ - name : Run test case
28+ run : ./lua.exe ./tests.lua --CI
You can’t perform that action at this time.
0 commit comments