From 32eef4af3712c75ba1f2249c557438c71e84952b Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Tue, 11 Jun 2024 12:07:30 +0100 Subject: [PATCH] fixup! fixup! fixup! Fix: Redis connection for tests. --- .github/workflows/pr.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 244b201..633c87d 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -43,6 +43,7 @@ jobs: name: "Unit testing" # needs: [prepare] runs-on: ubuntu-latest + container: ubuntu-latest # container: github/super-linter:v4 needs: [prepare] @@ -57,6 +58,9 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + ports: + # Maps the container port to the host machine + - 6379:6379 steps: - name: Checkout repository @@ -76,6 +80,7 @@ jobs: env: REDIS_HOST: redis REDIS_PORT: 6379 + REDIS_SERVER: "redis:6379" run: | export REDIS_SERVER="$REDIS_HOST:$REDIS_PORT" CI_RUN=${CI} make test