-
Notifications
You must be signed in to change notification settings - Fork 24
118 lines (105 loc) · 2.83 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: Tests
on:
push:
branches:
- '**'
paths-ignore:
- 'doc/**'
jobs:
test:
strategy:
fail-fast: false
matrix:
tarantool:
- "1.10"
- "2.2"
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
- "2.8"
cartridge:
- ""
- "1.2.0"
- "2.1.2"
- "2.4.0"
- "2.5.1"
- "2.6.0"
- "2.7.9"
include:
- tarantool: "2.11"
cartridge: "2.7.9"
- tarantool: "2.11"
cartridge: ""
- tarantool: "2.10"
cartridge: "2.7.9"
- tarantool: "2.10"
cartridge: "2.8.4"
- tarantool: "2.11"
cartridge: "2.8.4"
- tarantool: "2.10"
cartridge: ""
- tarantool: "3.0"
cartridge: ""
- tarantool: "3.1"
cartridge: ""
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: tarantool/setup-tarantool@v3
if: matrix.tarantool != '2.x-latest'
with:
tarantool-version: ${{ matrix.tarantool }}
- name: Install latest pre-release Tarantool 2.x
if: matrix.tarantool == '2.x-latest'
run: |
curl -L https://tarantool.io/pre-release/2/installer.sh | bash
sudo apt-get -y install tarantool
# Stop Mono server. This server starts and listens to 8084 port that is
# used for tests.
- name: 'Stop Mono server'
run: sudo kill -9 $(sudo lsof -t -i tcp:8084) || true
- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version
- name: lint
run: make lint
env:
CARTRIDGE_VERSION: ${{ matrix.cartridge }}
- name: test
run: make test_with_coverage_report
packpack:
runs-on: ubuntu-20.04
needs: test
steps:
- uses: actions/checkout@v4
- name: packpack
run: |
git clone https://github.com/packpack/packpack.git packpack
OS=el DIST=8 packpack/packpack
ls -l build/
promtool:
runs-on: ubuntu-20.04
needs: test
steps:
- uses: actions/checkout@v4
- uses: tarantool/setup-tarantool@v3
with:
tarantool-version: '2.10'
- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version
- uses: actions/setup-go@v5
with:
go-version: '1.15'
- name: promtool test
env:
CARTRIDGE_VERSION: '2.7.8'
run: |
GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool@a6be548dbc17780d562a39c0e4bd0bd4c00ad6e2
make test_promtool