Debian Codegraph @

.github/workflows/go-test.yml

raw
1 name: go-test
2 on:
3 push:
4 tags:
5 - v*
6 branches:
7 - master
8 pull_request:
9 jobs:
10 build:
11 runs-on: ${{ matrix.os }}
12 strategy:
13 matrix:
14 go-version:
15 - '1.21'
16 - '1.22'
17 os:
18 - 'ubuntu-latest'
19 redis:
20 - '7.2'
21 - '7.0'
22 - '6.2'
23 - '6.0'
24 name: Test go ${{ matrix.go-version }} redis ${{ matrix.redis }} on ${{ matrix.os }}
25 steps:
26 - name: Setup redis
27 uses: shogo82148/actions-setup-redis@v1
28 with:
29 redis-version: ${{ matrix.redis }}
30
31 - name: Checkout code
32 uses: actions/checkout@v4
33
34 - name: Install Go
35 uses: actions/setup-go@v5
36 with:
37 go-version: ${{ matrix.go-version }}
38
39 - name: Go Test
40 run: go test -race ./...