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 32e3094
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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,14 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
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
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
Expand Down

0 comments on commit 32e3094

Please sign in to comment.