Skip to content

Commit

Permalink
chore(workflow): Add Redis service to the test action
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Jan 19, 2024
1 parent cd2644e commit 558b87f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
DB_PASSWORD: postgres
DB_NAME: bots
DB_HOST: localhost
REDIS_HOST: redis://localhost
services:
postgres:
image: postgres
Expand All @@ -24,6 +25,16 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
Expand Down

0 comments on commit 558b87f

Please sign in to comment.