fix(ci): point CMS deep health check to correct api/health endpoint and improve check-http error formatting
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Failing after 31s
Build & Deploy / 🏗️ Build (push) Successful in 2m6s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-02-28 22:56:41 +01:00
parent 78da0fdea9
commit 9887324469
2 changed files with 11 additions and 4 deletions

View File

@@ -428,7 +428,7 @@ jobs:
echo "Waiting 10s for app to fully start..."
sleep 10
echo "Checking basic health..."
curl -sf "$DEPLOY_URL/health" || { echo "❌ Basic health check failed"; exit 1; }
curl -sf "$DEPLOY_URL/api/health" || { echo "❌ Basic health check failed"; exit 1; }
echo "✅ Basic health OK"
- name: 🌐 Core Smoke Tests (HTTP, API, Locale)

View File

@@ -75,9 +75,16 @@ async function main() {
);
process.exit(0);
}
} catch (e) {
const error = e as Error;
console.error(`\n❌ Critical Error during Sitemap Fetch:`, error.message);
} catch (error: any) {
if (error.response) {
console.error(
`\n❌ Critical Error during Sitemap Fetch: HTTP ${error.response.status} ${error.response.statusText}`,
);
} else {
console.error(
`\n❌ Critical Error during Sitemap Fetch: ${error.message || error}`,
);
}
process.exit(1);
}
}