From 259436af18277a74d59582cfd53a3478260d3659 Mon Sep 17 00:00:00 2001 From: Tim Disney Date: Thu, 30 Jul 2026 09:53:34 -0700 Subject: [PATCH] add tangled ci --- .tangled/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ CLAUDE.md | 5 +++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .tangled/workflows/ci.yml diff --git a/.tangled/workflows/ci.yml b/.tangled/workflows/ci.yml new file mode 100644 index 0000000..018afe7 --- /dev/null +++ b/.tangled/workflows/ci.yml @@ -0,0 +1,32 @@ +# Tangled spindle CI — the mirror of .github/workflows/ci.yml. Both remotes run the same +# checks; keep the two step lists in sync when either changes. + +when: + - event: ["push", "manual"] + branch: ["**"] + - event: ["pull_request"] + branch: ["**"] + +engine: microvm +image: nixos + +dependencies: + - nodejs_24 + - pnpm + - git + +steps: + - name: "Install" + command: pnpm install --frozen-lockfile + - name: "Codegen is current" + command: | + pnpm codegen + git diff --exit-code + - name: "Typecheck" + command: pnpm typecheck + - name: "Lint" + command: pnpm lint + - name: "Test" + command: pnpm test + - name: "Build" + command: pnpm build diff --git a/CLAUDE.md b/CLAUDE.md index f423106..dac86f9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,8 +28,9 @@ pnpm build pnpm images # build the agent turn container image (docker/Dockerfile) ``` -CI (`.github/workflows/ci.yml`) runs `codegen` then `git diff --exit-code`, so a lexicon change with -stale generated output fails the build. +CI runs `codegen` then `git diff --exit-code`, so a lexicon change with stale generated output fails +the build. The same steps run on both remotes — `.github/workflows/ci.yml` on GitHub and +`.tangled/workflows/ci.yml` on tangled's spindle; change one and change the other. ### Running one test -- 2.51.2