From 954f0fda1463d6d1045d92cd71e8e652a36922b3 Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Wed, 27 Nov 2024 16:37:21 +0100 Subject: [PATCH] fix port issue --- .github/workflows/wep_app_ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/wep_app_ci.yml b/.github/workflows/wep_app_ci.yml index 564c868e..061ce0ce 100644 --- a/.github/workflows/wep_app_ci.yml +++ b/.github/workflows/wep_app_ci.yml @@ -44,6 +44,13 @@ jobs: run: | cp .env.dev .env sed -i 's/DB_HOST=db/DB_HOST=127.0.0.1/' .env + sed -i 's/DB_PORT=5432/DB_PORT=5433/' .env + + - name: Wait for Database to be Ready + run: | + for i in {1..30}; do + pg_isready -h 127.0.0.1 -p 5433 -U postgres && break || sleep 2; + done - name: Run Tests for Web_App working-directory: ./apps/web_app