-
Notifications
You must be signed in to change notification settings - Fork 39
102 lines (84 loc) · 2.54 KB
/
test.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
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
name: Testing
on:
push:
workflow_dispatch:
pull_request:
jobs:
tests-ce:
strategy:
fail-fast: false
matrix:
tarantool: ['1.10', '2.10', '2.11', '3.1', '3.2']
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@master
- uses: tarantool/setup-tarantool@v3
with:
tarantool-version: ${{ matrix.tarantool }}
- name: Prepare the repo
run: curl -L https://tarantool.io/release/2/installer.sh | bash
env:
DEBIAN_FRONTEND: noninteractive
- name: Install tt cli
run: sudo apt install -y tt=2.4.0
env:
DEBIAN_FRONTEND: noninteractive
- name: Cache rocks
uses: actions/cache@v2
id: cache-rocks
with:
path: .rocks/
key: cache-rocks-${{ matrix.tarantool }}-05
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH
- run: ./deps.sh
- name: Build module
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -S . -B build
make -C build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests without code coverage analysis
run: make -C build luatest
tests-ee:
strategy:
fail-fast: false
matrix:
coveralls: [false]
sdk-version:
- "2.11.2-0-r609.linux.x86_64"
- "3.2.0-0-r40.linux.x86_64"
include:
- tarantool: "3.2.0-0-r40.linux.x86_64"
coveralls: true
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@master
- name: Prepare EE env
uses: ./.github/actions/prepare-ee-test-env
with:
sdk-version: '${{ matrix.sdk-version }}'
sdk-download-token: '${{ secrets.SDK_DOWNLOAD_TOKEN }}'
- name: Install tt cli
run: sudo apt install -y tt=2.4.0
env:
DEBIAN_FRONTEND: noninteractive
- name: Cache rocks
uses: actions/cache@v2
id: cache-rocks
with:
path: .rocks/
key: cache-rocks-${{ matrix.tarantool }}-05
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH
- run: ./deps.sh
- name: Build module
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -S . -B build
make -C build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests without code coverage analysis
run: make -C build luatest
if: matrix.coveralls != true
- name: Send code coverage to coveralls.io
run: make -C build coveralls
if: ${{ matrix.coveralls }}