-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.11 KB
/
go-redis.yaml
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
#
# Do not edit. This file was generated via the "workflow" command line tool.
# More information about the tool can be found at github.com/xh3b4sd/workflow.
#
# workflow create redigo
#
name: "go-redis"
on: "push"
jobs:
go-redis:
runs-on: "ubuntu-latest"
container: "golang:1.21-alpine"
services:
redis:
image: "redis"
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis-sentinel:
image: "bitnami/redis-sentinel:6.0"
ports:
- "26379:26379"
env:
REDIS_SENTINEL_QUORUM: "1"
steps:
- name: "Setup Git Project"
uses: "actions/checkout@v4"
- name: "Install Race Dependency"
run: |
apk add gcc
apk add musl-dev
- name: "Check Go Tests"
env:
CGO_ENABLED: "1"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_SENTINEL_HOST: "redis-sentinel"
REDIS_SENTINEL_PORT: "26379"
run: |
go test ./... -race -tags single,sentinel