Skip to content

Commit

Permalink
Actions: Add Redis and Redis Sentinel services
Browse files Browse the repository at this point in the history
This adds Redis and Redis Sentinel services to the GitHub Actions test
setup. The current library we're using to mock the Redis connection
doesn't support Sentinel connections, so we have no simple way to test
that with a mock.
  • Loading branch information
sagepe committed Apr 14, 2022
1 parent ce6d5ef commit ca38b2b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ jobs:
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis-sentinel:
image: bitnami/redis-sentinel
env:
REDIS_MASTER_HOST: redis
REDIS_MASTER_SET: data
REDIS_SENTINEL_QUORUM: 1
ports:
- 26379:26379
options: >-
--health-cmd "redis-cli -p 26379 ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
PGHOST: localhost
PGUSER: postgres
Expand Down

0 comments on commit ca38b2b

Please sign in to comment.