From 91cf179d78f33579dd1fa85f3a0dfcfdc31ba6af Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Fri, 19 Jan 2024 00:00:31 -0400 Subject: [PATCH] chore(workflow): Add Redis service to the test action --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b2b7af17..8cc212ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,7 @@ jobs: DB_PASSWORD: postgres DB_NAME: bots DB_HOST: localhost + REDIS_HOST: redis://redis services: postgres: image: postgres @@ -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