-
Notifications
You must be signed in to change notification settings - Fork 17
61 lines (48 loc) · 1.52 KB
/
Copy pathci.yml
File metadata and controls
61 lines (48 loc) · 1.52 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
57
58
59
60
61
name: CI
on: [push]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
go: ["1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25", "1.26", "1.27"]
stage: [testredis, testconn, testcluster]
exclude:
# Cluster suite spawns a 7-node redis cluster and takes ~7 minutes per
# matrix cell, while its behaviour does not depend on the go version.
- {go: "1.20", stage: testcluster}
- {go: "1.21", stage: testcluster}
- {go: "1.22", stage: testcluster}
- {go: "1.23", stage: testcluster}
- {go: "1.24", stage: testcluster}
- {go: "1.25", stage: testcluster}
- {go: "1.26", stage: testcluster}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Cache go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache redis build
uses: actions/cache@v4
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 }}