Skip to content

Commit d6fbaa2

Browse files
committed
CICD Live Backend Test
1 parent 61853d9 commit d6fbaa2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
5252
- name: Test Backend Is Live
5353
run: |
54-
curl --fail --silent --show-error https://api.aimablem.dev || exit 1
55-
56-
54+
for i in {1..10}; do
55+
echo "Checking backend (try $i)..."
56+
if curl --fail --silent --show-error https://api.aimablem.dev; then
57+
echo "Backend is up!"
58+
exit 0
59+
fi
60+
sleep 5
61+
done
62+
echo "Backend failed to respond after 10 attempts."
63+
exit 1

0 commit comments

Comments
 (0)