enable existing tasks to be deferred (#57) #153
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |