From 0d7282eb9742448fd6be9dee4be226345f58854c Mon Sep 17 00:00:00 2001 From: Josh Brown Date: Thu, 9 Apr 2026 15:38:26 +1000 Subject: [PATCH] port github CI to tangled Note that a spindle instance has to be chosen before pipelines are run in the repo settings. This doesn't port over the testing across multiple node versions that github had. The easiest way to do that as far as I can see would be having two workflows, each pulling in a separate `nodejs` package from nixpkgs. Maybe I'm missing something in the docs (https://docs.tangled.org/spindles.html#pipelines), though? For now, I think it's fine to test on a single version of node anyway. --- .tangled/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .tangled/workflows/test.yml diff --git a/.tangled/workflows/test.yml b/.tangled/workflows/test.yml new file mode 100644 index 0000000..033abaf --- /dev/null +++ b/.tangled/workflows/test.yml @@ -0,0 +1,21 @@ +when: + - event: ["push", "manual"] + branch: ["main", "develop"] + - event: ["pull_request"] + branch: ["main"] + +engine: "nixery" + +dependencies: + nixpkgs: + - nodejs + +steps: + - name: "ci setup" + command: "npm ci" + - name: "rescript build" + command: "npm run res:build" + - name: "project build" + command: "npm run build --if-present" + - name: "test" + command: "npm test" -- 2.51.2