-
Notifications
You must be signed in to change notification settings - Fork 699
43 lines (36 loc) · 1.28 KB
/
ci.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
name: CI
on: [ push, pull_request ]
jobs:
black-box-test:
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [ "2.8", "3.0", "4.0", "5.0", "6.0", "7.0" ]
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v3
with:
go-version-file: go.mod
- name: clone and make redis
run: |
sudo apt-get install git
git clone https://github.com/redis/redis
cd redis
git checkout ${{ matrix.redis-version }}
make -j
mkdir bin
cp src/redis-server bin/redis-server
echo "$GITHUB_WORKSPACE/redis/bin" >> $GITHUB_PATH
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: make redis-shake
run: |
sh build.sh
- name: test
run: |
pip3 install -r tests/requirements.txt
sh test.sh