From 99f89300aecd175d28d7ad2ae892957034e89028 Mon Sep 17 00:00:00 2001 From: secret-mars Date: Sat, 21 Nov 2026 19:44:10 +0000 Subject: [PATCH] ci: typecheck and unit tests on every PR The repo has no PR checks today (only release-please). Run tsc --noEmit and the unit suites (bun test tests/*.unit.test.ts) on every PR and push to main. The lifecycle suite (npm test) needs a funded mnemonic and a live worker, so it is left as a manual run. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d794cc5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + unit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - uses: oven-sh/setup-bun@v2 + - run: npm ci + - run: npm run check + # Unit tests only. `npm test` runs the lifecycle suite against a live worker + # and needs X402_CLIENT_PK (a funded mnemonic), so it stays a manual run. + - run: bun test tests/*.unit.test.ts