-
Notifications
You must be signed in to change notification settings - Fork 1.2k
47 lines (43 loc) · 935 Bytes
/
go-test.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
name: go-test
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version:
- '1.21'
- '1.22'
os:
- 'ubuntu-latest'
redis:
- '7.2'
- '7.0'
- '6.2'
- '6.0'
name: Test go ${{ matrix.go-version }} redis ${{ matrix.redis }} on ${{ matrix.os }}
steps:
- name: Setup redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: ${{ matrix.redis }}
- name: debug
run: |
env
pwd
ls -l
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
#cache-dependency-path: "**/go.sum"
- name: Checkout code
uses: actions/checkout@v4
- name: Go Test
run: go test -race ./...