Skip to content

add tests

add tests #146

Workflow file for this run

#
# 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 redis
#
name: "go-redis"
on: "push"
jobs:
go-redis:
runs-on: "ubuntu-latest"
container: "golang:1.22-alpine"
services:
redis:
image: "redis"
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
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"
run: |
go test ./... -race -tags redis