From 73d43144ec45a4ae5047d90e626cd95956839975 Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Sun, 20 Sep 2026 20:16:58 -0500 Subject: [PATCH] Add Tangled CI workflow Run the Lua tests and TypeScript build in the Nixery runtime. Cache the Bun dependencies between trusted runs. --- .tangled/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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..4afd71b --- /dev/null +++ b/.tangled/workflows/ci.yml @@ -0,0 +1,33 @@ +when: + - event: ["push", "manual"] + branch: ["**"] + - event: ["pull_request"] + branch: ["**"] + +engine: "nixery" + +clone: + depth: 1 + +dependencies: + nixpkgs/nixpkgs-unstable: + - bun + - neovim + - plan9port + - rc + +cache: + - key: "bun-dependencies" + hash: + - opencode-plugin/bun.lock + - opencode-plugin/package.json + paths: + - opencode-plugin/node_modules + +steps: + - name: "Install dependencies" + command: "cd opencode-plugin && bun install --frozen-lockfile" + - name: "Test" + command: "9 mk test" + - name: "Build" + command: "9 mk build" -- 2.51.2