Uptime Health Check #1580
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: Uptime Health Check | |
| on: | |
| push: | |
| branches: [master] | |
| schedule: | |
| - cron: '0 * * * *' # hourly instead of every 15 min | |
| workflow_dispatch: | |
| jobs: | |
| health-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check Argus API health | |
| run: | | |
| STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://argus-web-backend-production.up.railway.app/health || echo "000") | |
| if [ "$STATUS" = "200" ]; then | |
| echo "Health check OK" | |
| else | |
| echo "Backend returned HTTP $STATUS — may be scaled down (expected)" | |
| fi | |
| - name: Verify stats endpoint | |
| run: | | |
| STATS=$(curl -s https://argus-web-backend-production.up.railway.app/stats || echo "{}") | |
| echo "Stats: $(echo $STATS | head -c 200)" |