From 2254a557ab0de073467bfb6f405f7c290b127b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Adem=20I=C5=9EIKLI?= Date: Sun, 10 Mar 2024 17:40:02 +0100 Subject: [PATCH] Fixed --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82d737f..5d7e843 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,8 +25,9 @@ jobs: cp .env.example .env npm run build - name: Start the application - run: npm run start - background: true + run: npm run start & + - name: Wait for the server to start + run: sleep 5 - name: Test API endpoint run: | response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/docs)