Repository navigation
109 lines (99 loc) · 2.63 KB
/
Copy pathci.yml
File metadata and controls
109 lines (99 loc) · 2.63 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: ci
on:
pull_request: {}
push:
branches: [ $default-branch ]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: lua-http
- uses: leafo/gh-actions-lua@v8.0.0
- uses: leafo/gh-actions-luarocks@v4.0.0
- name: install-tooling
run: luarocks install luacheck
- name: luacheck
run: |
cd lua-http
luacheck .
test:
runs-on: ubuntu-latest
strategy:
matrix:
luaVersion:
- "5.1"
- "5.2"
- "5.3"
- "5.4"
- luajit-2.0.5
- luajit-2.1.0-beta3
luaCompileFlags: [""]
zlib: ["", "lzlib", "lua-zlib"]
remove_compat53: [false]
exclude:
# lzlib doesn't support Lua 5.4+
- luaVersion: "5.4"
zlib: "lzlib"
include:
- luaVersion: "5.3"
luaCompileFlags: LUA_CFLAGS="-DLUA_INT_TYPE=LUA_INT_INT"
- luaVersion: "5.3"
remove_compat53: true
steps:
- uses: actions/checkout@v2
with:
path: lua-http
- uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@v4.0.0
- name: install-tooling
run: |
luarocks install luacov-coveralls
luarocks install busted
- name: install-dependencies
run: |
cd lua-http
luarocks install --only-deps http-scm-0.rockspec
- name: install-lzlib
if: matrix.zlib == 'lzlib'
run: luarocks install lzlib
- name: install-lua-zlib
if: matrix.zlib == 'lua-zlib'
run: luarocks install lua-zlib
- name: remove-compat53
if: matrix.remove_compat53
run: luarocks remove compat53
- name: test
run: |
cd lua-http
busted -c -o utfTerminal
- name: coveralls
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
cd lua-http
luacov-coveralls -v
typedlua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: lua-http
- uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: "5.3" # tlc doesn't work with 5.4+
- uses: leafo/gh-actions-luarocks@v4.0.0
- name: install-tooling
run: luarocks install https://raw.githubusercontent.com/andremm/typedlua/master/typedlua-scm-1.rockspec
- name: install-dependencies
run: |
cd lua-http
luarocks install --only-deps http-scm-0.rockspec
- name: typedlua
run: |
cd lua-http
tlc -o /dev/null spec/require-all.lua