fix: healthcheck with verbose error output

Remove 2>/dev/null to surface the actual error when docker exec
or wget fails inside the CI container.
This commit is contained in:
2026-05-17 03:38:25 -07:00
parent 9e3d2a85fd
commit 0cc4764aa5
+3 -2
View File
@@ -82,10 +82,11 @@ jobs:
- name: Wait for CI site to be healthy
run: |
for i in {1..30}; do
if docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>/dev/null | grep -q healthy; then
echo "CI site is healthy"
if result=$(docker exec euchre-camp-ci wget -q -O- http://localhost:3000/api/health 2>&1); then
echo "CI site is healthy: $result"
exit 0
fi
echo "Attempt $i: $result"
sleep 2
done
echo "CI site failed to become healthy after 60 seconds"