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
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
test_dir=$(mktemp -d)
trap 'rm -rf "$test_dir"' EXIT
mkdir -p "$test_dir/bin"
printf '%s\n' '#!/bin/sh' 'exit 0' > "$test_dir/bin/curl"
chmod +x "$test_dir/bin/curl"
PATH="$test_dir/bin:$PATH" API_HEALTH_URL=http://api.test/health WEB_BASE_URL=http://web.test \
PUBLIC_SEARCH_URL=http://web.test/api/v1/public/search sh "$script_dir/smoke-production.sh" >/dev/null
printf '%s\n' 'smoke-production tests passed.'