-
-
Notifications
You must be signed in to change notification settings - Fork 247
53 lines (40 loc) · 1.1 KB
/
spec.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
49
50
51
52
53
name: "spec"
on: [push, pull_request]
jobs:
# this runs the tests in the docker image against live postgres & mysql
# and openresty
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# - uses: leafo/lapis@master
- name: build
run: |
docker build -t lapis-test .
- name: test
run: |
docker run lapis-test
# this runs all generic lua tests
test:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit", "luajit-openresty"]
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: build
run: |
[[ "${{ matrix.luaVersion }}" =~ ^5\.[12]$ ]] && luarocks install luabitop || true
luarocks install busted
luarocks install moonscript
luarocks install tableshape
luarocks install lsqlite3
luarocks make
- name: test
run: |
busted -o utfTerminal -v