summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2023-01-24 12:19:27 -0700
committerSimponic <loganhunt@simponic.xyz>2023-01-24 12:19:27 -0700
commitf8fd8fe39f33f35fef50094939657c86cc62427c (patch)
treed8919b97acb816e4b28143124fe73e053271553f
parent24bf3de5f90380150fb78665dd39cc1001855a69 (diff)
downloadchessh-f8fd8fe39f33f35fef50094939657c86cc62427c.tar.gz
chessh-f8fd8fe39f33f35fef50094939657c86cc62427c.zip
Add redis service for github workflow - will it work first try?
-rw-r--r--.github/workflows/elixir.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml
index 95dc4c6..1bb6de9 100644
--- a/.github/workflows/elixir.yml
+++ b/.github/workflows/elixir.yml
@@ -13,6 +13,8 @@ on:
env:
MIX_ENV: test
NODE_ID: aUniqueString
+ REDIS_HOST: redis
+ REDIS_PORT: 6379
jobs:
test:
@@ -20,6 +22,17 @@ jobs:
# use Postgres. This creates a database for running tests.
# Additional services can be defined here if required.
services:
+ # Label used to access the service container
+ 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
+
db:
image: postgres:14
ports: ['5432:5432']