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)