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
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:
@@ -428,7 +428,7 @@ jobs:
|
|||||||
echo "Waiting 10s for app to fully start..."
|
echo "Waiting 10s for app to fully start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "Checking basic health..."
|
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"
|
echo "✅ Basic health OK"
|
||||||
|
|
||||||
- name: 🌐 Core Smoke Tests (HTTP, API, Locale)
|
- name: 🌐 Core Smoke Tests (HTTP, API, Locale)
|
||||||
|
|||||||
@@ -75,9 +75,16 @@ async function main() {
|
|||||||
);
|
);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (error: any) {
|
||||||
const error = e as Error;
|
if (error.response) {
|
||||||
console.error(`\n❌ Critical Error during Sitemap Fetch:`, error.message);
|
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);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user