Skip to content

Commit c7492fd

Browse files
talissoncostaclaude
andcommitted
ci: Drop /health from smoke test (moved behind VPN)
/health, /admin, /metrics and /sales-dashboard are now only reachable via internal.flagsmith.com (VPN). Public preview URLs return 404 for these paths. Keep /config/project-overrides (Express server-side route, proves the server is running) and / (proves static files are deployed). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 06cd573 commit c7492fd

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/frontend-pull-request.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,20 @@ jobs:
8383
continue
8484
fi
8585
86-
# Smoke test the deployment
87-
for ENDPOINT in "/health" "/config/project-overrides" "/"; do
88-
echo "🔍 Testing $URL$ENDPOINT ..."
89-
STATUS=$(curl -s -o /dev/null -w '%{http_code}' --max-time 30 "$URL$ENDPOINT")
90-
if [ "$STATUS" != "200" ]; then
91-
echo "⚠️ $ENDPOINT returned $STATUS"
92-
FAILED=1
93-
fi
94-
done
86+
# Smoke test: Express server + static files
87+
echo "🔍 Testing $URL/config/project-overrides ..."
88+
STATUS=$(curl -s -o /dev/null -w '%{http_code}' --max-time 30 "$URL/config/project-overrides")
89+
if [ "$STATUS" != "200" ]; then
90+
echo "⚠️ /config/project-overrides returned $STATUS"
91+
FAILED=1
92+
fi
93+
94+
echo "🔍 Testing $URL/ ..."
95+
STATUS=$(curl -s -o /dev/null -w '%{http_code}' --max-time 30 "$URL/")
96+
if [ "$STATUS" != "200" ]; then
97+
echo "⚠️ / returned $STATUS"
98+
FAILED=1
99+
fi
95100
96101
echo "✅ Smoke tests done for '$ENV_NAME'"
97102
echo ""

0 commit comments

Comments
 (0)