Add runnable smoke-test clients for each SDK
CI / js (push) Successful in 18s
CI / go (push) Successful in 36s
CI / rust (push) Successful in 2m3s

Each package gets a small example program that exercises the real
client: with no ORIGIN_SERVICE_KEY set it runs against a local mock
check-in server, otherwise it checks in against ORIGIN_URL/Origin's
public endpoint. Wired into CI (mock mode) as a regression check, and
documented per README.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-01 15:38:37 +02:00
co-authored by Claude Sonnet 5
parent 2590e404f5
commit ac3c0f149c
9 changed files with 331 additions and 2 deletions
+3
View File
@@ -20,6 +20,7 @@ jobs:
- run: go vet ./...
- run: test -z "$(gofmt -l .)"
- run: go test ./...
- run: go run ./examples/testclient
js:
runs-on: ubuntu-latest
@@ -37,6 +38,7 @@ jobs:
- run: npm run typecheck
- run: npm run build
- run: npm test
- run: node examples/testclient.mjs
rust:
runs-on: ubuntu-latest
@@ -52,3 +54,4 @@ jobs:
- run: cargo clippy --all-targets -- -D warnings
- run: cargo build
- run: cargo test
- run: cargo run --example testclient