forked from tarantool/luatest
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.1 KB
/
test_on_push.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
name: Run tests
on:
push:
pull_request:
jobs:
run-tests-ce:
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != 'tarantool'
strategy:
matrix:
tarantool: ["1.10", "2.6", "2.7", "2.8", "2.10", "2.11", "3.0"]
fail-fast: false
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@master
- uses: tarantool/setup-tarantool@v3
with:
tarantool-version: '${{ matrix.tarantool }}'
- name: Install tt utility
run: |
curl -L https://tarantool.io/release/2/installer.sh | bash
sudo apt-get -y install tt
- name: Install requirements for community
run: |
cmake -S . -B build
make -C build bootstrap
# This server starts and listen on 8084 port that is used for tests
- name: Stop Mono server
run: sudo kill -9 $(sudo lsof -t -i tcp:8084) || true
- name: Run linter
run: make -C build lint
- name: Run tests with coverage
run: make -C build selftest-coverage