Skip to content

Commit 4671bef

Browse files
tcconnallyclaude
andauthored
ci: add smoke-test workflow (#64)
One job that exercises the literal demo/quickstart path with stub credentials, so 'crashes on import' bugs are caught before judging. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 2f79e58 commit 4671bef

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/smoke-test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Smoke Test
2+
3+
on:
4+
push:
5+
branches: [main, ci/smoke-tests]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
demo-runs:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@stable
16+
- uses: Swatinem/rust-cache@v2
17+
- name: Build
18+
run: cargo build --locked
19+
- name: Smoke test — MCP stdio handshake against a fresh database
20+
run: |
21+
out=$(printf '%s\n' \
22+
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \
23+
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
24+
| ./target/debug/mimir --db /tmp/smoke.db)
25+
echo "$out"
26+
echo "$out" | grep -q '"protocolVersion"' || { echo "initialize failed"; exit 1; }
27+
echo "$out" | grep -q 'mimir_remember' || { echo "tools/list missing mimir_remember"; exit 1; }

0 commit comments

Comments
 (0)