Skip to content

Commit

Permalink
feat(ci): add Redis service to GitHub test Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfredinni committed Jan 7, 2025
1 parent a1d6def commit ff47d1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:latest
ports:
- 6379:6379
options:
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5

strategy:
matrix:
Expand All @@ -35,6 +44,7 @@ jobs:
DEBUG: "True"
DJANGO_SECRET_KEY: django-insecure-wlgjuo53y49%-4y5(!%ksylle_ud%b=7%__@9hh+@$d%_^y3s!
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
REDIS_URL: redis://localhost:6379/1

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit ff47d1d

Please sign in to comment.