feat: add deployment smoke check
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 20:21:55 -04:00
parent 73b4b9795e
commit 75b956e7b5
3 changed files with 45 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -eu
api_url=${API_HEALTH_URL:-http://localhost:3000/health}
web_url=${WEB_BASE_URL:-http://localhost:8080}
search_url=${PUBLIC_SEARCH_URL:-$web_url/api/v1/public/search?query=}
check_url() {
url=$1
label=$2
if ! curl --fail --silent --show-error --max-time 10 "$url" >/dev/null; then
printf '%s\n' "${label} health check failed: ${url}" >&2
exit 1
fi
printf '%s\n' "${label} check passed"
}
check_url "$api_url" 'API'
check_url "$web_url/health" 'Web'
check_url "$search_url" 'Public search'