-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (42 loc) · 1.4 KB
/
reusable_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
name: Reusable test
on:
workflow_call:
inputs:
artifact_name:
description: The name of the Tarantool build artifact
default: ubuntu-focal
required: false
type: string
jobs:
run_tests:
runs-on: ubuntu-20.04
steps:
- name: Clone the crud module
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/crud
- name: Download the Tarantool build artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact_name }}
# All dependencies for tarantool are already installed in Ubuntu 20.04.
# Check package dependencies when migrating to other OS version.
- name: Install Tarantool
run: |
sudo dpkg -i tarantool_*.deb tarantool-common_*.deb tarantool-dev_*.deb
tarantool --version
- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version
- name: Install requirements
run: ./deps.sh
env:
VSHARD_VERSION: "0.1.26"
# 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
- run: cmake -S . -B build
- name: Run regression tests
run: make -C build luatest-no-coverage