From 28f93e162bfff7ac0ab530be0bc6bb8b91556365 Mon Sep 17 00:00:00 2001 From: selimyanat Date: Mon, 31 Mar 2025 17:42:34 +0200 Subject: [PATCH] Run smoke tests for connectivity purposes --- .github/workflows/cd.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d0eb400..8e61809 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -60,11 +60,13 @@ jobs: - name: Start docker-compose run: | docker-compose -f docker-compose.yml up -d --build + + - name: Smoke test API + run: | + sleep 15 + curl -sf http://localhost:3001 || exit 1 - - smoke-test: - image: curlimages/curl - depends_on: - - webapp - - api + - name: Smoke test Webapp run: | - sh -c "sleep 5 && curl -sf http://localhost:3001 || exit 1" \ No newline at end of file + sleep 15 + curl -sf http://localhost:3000 || exit 1 \ No newline at end of file