Skip to content

Commit

Permalink
use action services to launch sidecars
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaqiuxy committed Jun 8, 2021
1 parent a77708a commit ef82fed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ jobs:
tests:
name: Test
runs-on: ubuntu-latest
services:
redis:
image: redis:latest
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
dynamodb-local:
image: amazon/dynamodb-local:latest
ports:
- 8000:8000
steps:
# Check out the repo
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var redisInstance *redis.Client
func RedisClient() *redis.Client {
var redisDb = func() (*redis.Client, error) {
db := redis.NewClient(&redis.Options{
Addr: "localhost:6379",
Addr: "redis:6379",
Password: "",
})

Expand Down

0 comments on commit ef82fed

Please sign in to comment.