fix(ci): 在 runner 中安裝 curl 解決 health check HTTP 000 問題
All checks were successful
E2E Health Check / e2e-health (push) Successful in 17s

This commit is contained in:
OG T
2026-03-29 22:36:04 +08:00
parent 68438da2a2
commit c96923f518
2 changed files with 2 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ jobs:
# ── Health Check ─────────────────────────────────────────────────────
- name: Health Check
run: |
sudo apt-get update && sudo apt-get install -y curl || (apt-get update && apt-get install -y curl)
sleep 10
for i in 1 2 3; do
HTTP_CODE=$(curl -s -w "%{http_code}" -o /dev/null --connect-timeout 10 "http://192.168.0.121:32334/api/v1/health")

View File

@@ -19,6 +19,7 @@ jobs:
- name: Check API Health
run: |
sudo apt-get update && sudo apt-get install -y curl || (apt-get update && apt-get install -y curl)
# 使用 host.docker.internal 或直接 IP
API_URL="http://192.168.0.121:32334"
echo "🔗 檢查 API 健康狀態..."