Skip to content

Commit 8eeb059

Browse files
ci: replace inline smoke test with a just smoke recipe
Keeps CI a thin wrapper around the just contract; the same boot test now runs locally with 'just smoke'.
1 parent b9b9353 commit 8eeb059

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ jobs:
2222
- uses: actions/checkout@v7
2323
- uses: extractions/setup-just@v4
2424
- run: cp .env.example .env
25-
- run: just up
26-
- name: Wait for Grafana to report healthy
27-
run: timeout 120 sh -c 'until curl -sf http://localhost:3000/api/health; do sleep 3; done'
25+
- run: just smoke
2826
- run: just down

justfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ check:
5252
# Format YAML in place (needs yamlfmt on the host; optional).
5353
fmt:
5454
yamlfmt .
55+
56+
# Boot the core stack and wait until Grafana reports healthy. Used by CI.
57+
smoke:
58+
docker compose up -d
59+
n=0; until curl -sf http://localhost:3000/api/health >/dev/null; do n=$((n+3)); [ $n -ge 120 ] && { echo "Grafana not healthy after 120s" >&2; exit 1; }; sleep 3; done
60+
@echo "Grafana healthy"

0 commit comments

Comments
 (0)