Cron Health #3528
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cron Health | |
on: | |
schedule: | |
- cron: '*/10 * * * *' | |
workflow_dispatch: {} | |
env: | |
API: https://hbuk-backend-hvow.onrender.com | |
HEALTH_PATHS: /api/health,/healthz | |
jobs: | |
health: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Curl probe - API health | |
run: | | |
set -e | |
echo "GET $API/api/health" | |
curl -fsS --retry 6 --retry-delay 5 --retry-all-errors "$API/api/health" >/dev/null | |
echo "GET $API/healthz" | |
curl -fsS --retry 6 --retry-delay 5 --retry-all-errors "$API/healthz" >/dev/null | |
echo "Curl probe: OK" | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Run robust healthcheck script | |
run: node scripts/healthcheck.mjs |