-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (45 loc) · 1.59 KB
/
testing.yaml
File metadata and controls
56 lines (45 loc) · 1.59 KB
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
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:
tarantool-version: ['2.11', '3.3']
fail-fast: false
runs-on: [ubuntu-24.04]
steps:
- name: Clone the repository
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/memcached
# Enable recursive submodules checkout as test-run git module is used
# for running tests.
submodules: recursive
- name: Setup Tarantool (version is not equal to latest 2.x)
if: matrix.tarantool-version != '2.x-latest'
uses: tarantool/setup-tarantool@v3
with:
tarantool-version: ${{ matrix.tarantool-version }}
- name: Setup Tarantool 2.x (latest)
if: matrix.tarantool-version == '2.x-latest'
run: |
curl -L https://tarantool.io/pre-release/2/installer.sh | sudo bash
sudo apt install -y tarantool tarantool-dev
- name: Install build requirements
run: sudo apt-get -y install libsasl2-dev libevent-dev libpcre3-dev
- run: cmake .
- name: Setup Python 3 for tests
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install test requirements
run: pip install -r test-run/requirements.txt
- run: make test-memcached
- run: make test-memcached-capable
- name: Run benchmarks
run: make test-memcached-bench