-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (43 loc) · 1.39 KB
/
test.yaml
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: Testing
on:
push:
pull_request:
jobs:
testing:
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
LUA: ['luajit-2.0.5', 'tarantool']
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Tarantool
if: matrix.LUA == 'tarantool'
uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '2.10'
- name: Setup LuaJIT (${{ matrix.LUA }})
if: matrix.LUA != 'tarantool'
uses: leafo/gh-actions-lua@v8
with:
luaVersion: ${{ matrix.LUA }}
- name: Setup luarocks
run: sudo apt install -y luarocks
- name: Setup SQLite devepelopment package
run: sudo apt install -y sqlite3 libsqlite3-dev
- name: Setup dependencies
run: make deps
- run: echo $(luarocks path --lr-bin) >> $GITHUB_PATH
- name: Run tests with Tarantool and send coverage to Coveralls.io
if: matrix.LUA == 'tarantool'
run: make coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEV: ON
- name: Run tests with LuaJIT (${{ matrix.LUA }})
if: matrix.LUA != 'tarantool'
run: LUAJIT_BIN=$(pwd)/.lua/bin/luajit DEV=ON make test-luajit