forked from joomcode/redispipe
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (33 loc) · 878 Bytes
/
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
44
45
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.19]
stage: [testredis, testconn, testcluster]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache redis build
uses: actions/cache@v2
with:
path: |
/tmp/redis-server
key: ${{ runner.os }}-redis-${{ hashFiles('Makefile') }}
- name: Install redis
run: make /tmp/redis-server/redis-server
- name: Build
run: make ${{ matrix.stage }}