Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/session-live-health.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Session live health probe

on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
probe:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Check public dashboard health
shell: bash
run: |
set -euo pipefail
echo "Checking public health endpoint"
code=$(curl -sS -o /tmp/health.json -w '%{http_code}' --max-time 15 https://ontology.oosu.dev/dev_dashboard/api/health || true)
echo "HTTP=$code"
if [ -f /tmp/health.json ]; then
head -c 1000 /tmp/health.json
echo
fi
test "$code" = "200"
grep -q '"status"[[:space:]]*:[[:space:]]*"ok"' /tmp/health.json