Skip to content

Commit

Permalink
GitHub action fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsaniara committed May 28, 2022
1 parent c5a7d7e commit 24bcfd0
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@ on:

jobs:

build:
container-job:

runs-on: ubuntu-latest

services:

redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build
run: go build -v ./...
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
- name: Test
run: go test ./... -RedisHost localhost:6379

0 comments on commit 24bcfd0

Please sign in to comment.