forked from wooga/eredis
-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (48 loc) · 1.42 KB
/
redis_compability.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
name: Redis compatibility testing
on:
pull_request:
push:
branches:
- master
jobs:
redis-comp:
strategy:
fail-fast: false
matrix:
include:
- redis-version: 7.0.4
test-target: ct
- redis-version: 6.2.7
test-target: ct
- redis-version: 6.0.16
test-target: ct
- redis-version: 5.0.14
test-target: ct-tcp
- redis-version: 4.0.14
test-target: ct-tcp
- redis-version: 3.2.12
test-target: ct-tcp
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Hex packages
uses: actions/cache@v2
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles('**/rebar.lock') }}
restore-keys: ${{ runner.os }}-hex-
- name: Install Erlang/OTP
run: |
DEB_NAME="esl-erlang_25.0.3-1~ubuntu~focal_amd64.deb"
curl -f https://packages.erlang-solutions.com/erlang/debian/pool/$DEB_NAME -o $DEB_NAME
sudo dpkg --install $DEB_NAME
- name: Install faketime
run: |
sudo apt update
sudo apt install -yy --no-install-recommends faketime
- name: Build
run: make compile
- name: Test
run: |
REDIS_VERSION=${{ matrix.redis-version }} make ${{ matrix.test-target }}