-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (23 loc) · 788 Bytes
/
Copy pathuptime.yml
File metadata and controls
26 lines (23 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)"