promote: dev → uat (GRO-1489 lint fixes) #433
@@ -82,16 +82,22 @@ jobs:
|
|||||||
- name: Wait for services to be ready
|
- name: Wait for services to be ready
|
||||||
run: |
|
run: |
|
||||||
echo "Waiting for services to become ready..."
|
echo "Waiting for services to become ready..."
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 60); do
|
||||||
if curl -sf http://localhost:8080 > /dev/null 2>&1 && curl -sf http://localhost:3000/health > /dev/null 2>&1; then
|
# Poll both the web root (proves nginx + static app are up) and the
|
||||||
echo "Services ready after ${i} attempts"
|
# API /health endpoint (proves the Node server is responding).
|
||||||
|
WEB_STATUS=$(curl -sf -o /dev/null -w "%{http_code}" http://localhost:8080 2>/dev/null || echo "000")
|
||||||
|
API_STATUS=$(curl -sf -o /dev/null -w "%{http_code}" http://localhost:3000/health 2>/dev/null || echo "000")
|
||||||
|
if [ "$WEB_STATUS" = "200" ] && [ "$API_STATUS" = "200" ]; then
|
||||||
|
echo "Both services healthy after ${i} attempts (web=$WEB_STATUS, api=$API_STATUS)"
|
||||||
|
echo "Allowing 30s grace period for nginx to fully initialize..."
|
||||||
|
sleep 30
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "Attempt $i/30: services not ready yet, waiting 10s..."
|
echo "Attempt $i/60: web=$WEB_STATUS api=$API_STATUS — waiting 10s..."
|
||||||
sleep 10
|
sleep 10
|
||||||
done
|
done
|
||||||
echo "Warning: services may not be fully ready after 30 attempts (5m)"
|
echo "Warning: services may not be fully ready after 60 attempts (10m)"
|
||||||
timeout-minutes: 6
|
timeout-minutes: 12
|
||||||
|
|
||||||
- name: Run E2E tests
|
- name: Run E2E tests
|
||||||
run: pnpm --filter @groombook/e2e test
|
run: pnpm --filter @groombook/e2e test
|
||||||
|
|||||||
Reference in New Issue
Block a user