diff --git a/.github/workflows/pre-submit.yaml b/.github/workflows/pre-submit.yaml index a77e77a9..a8f1e514 100644 --- a/.github/workflows/pre-submit.yaml +++ b/.github/workflows/pre-submit.yaml @@ -31,6 +31,17 @@ jobs: ports: # Maps tcp port 5432 on service container to the host - 5432:5432 + redis: + # Docker Hub image + 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 + ports: + - 6379:6379 steps: - uses: actions/checkout@v2