ci: run the Deno, Bun and workerd suites on every push
package.json has defined test:deno, test:bun and test:edge for a while and CI ran none of them, so 'runs everywhere' rested on whoever remembered to run them locally. AGENTS.md even warned that npm test does not cover the other runtimes without anything closing that gap. Its own job rather than more steps on build, so a Bun failure reads as a Bun failure instead of burying the Node lint output — the same reasoning that places the audit where it is. fail-fast is off because which *other* runtime broke is the useful half of the answer. README and AGENTS.md now say the suites gate a merge, since the claim they back is the headline one. Refs: .specs/reports/green-tea-next-beta-trust-release.md section 7 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
3 files changed
+37
-3
No files matched your search
@@ -63,3 +63,34 @@ jobs:
|
||||
- run: npm audit --prefix website
|
||||
continue-on-error: true
|
||||
- run: npm run docs:build
|
||||
|
||||
# Runs everywhere is the headline claim, so it gets tested rather than asserted. `npm test` is
|
||||
# Node only: a change to shared code can pass it and still be broken on Deno or Bun, which is
|
||||
# exactly why these suites exist separately. Leaving them out of CI meant the claim rested on
|
||||
# whoever remembered to run them locally.
|
||||
#
|
||||
# Its own job, not more steps on `build`, for the reason the audit sits where it does: a Bun
|
||||
# failure should read as a Bun failure instead of burying the Node lint output.
|
||||
runtimes:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
# One runtime breaking must not cancel the others — which one else broke is the useful part
|
||||
# of the answer, and a cancelled job reports as if it had never been asked.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runtime: [deno, bun, edge]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
# All three need the dependency tree: the edge suite drives workerd from a Node process, and
|
||||
# Deno and Bun resolve `reflect-metadata` out of node_modules like any other import.
|
||||
- run: npm ci
|
||||
- if: matrix.runtime == 'deno'
|
||||
uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: v2.x
|
||||
- if: matrix.runtime == 'bun'
|
||||
uses: oven-sh/setup-bun@v2
|
||||
- run: npm run test:${{ matrix.runtime }}
|
||||
@@ -25,7 +25,7 @@ npm run test:bun
|
||||
npm run test:edge
|
||||
```
|
||||
|
||||
Run the first four before proposing anything as finished. The runtime suites are separate on purpose — a change to shared code that passes `npm test` may still be broken on Deno or Bun.
|
||||
Run the first four before proposing anything as finished. The runtime suites stay separate commands on purpose — a change to shared code that passes `npm test` may still be broken on Deno or Bun — but they are no longer optional: CI runs all three on every push and each one gates a merge. Run them yourself for anything touching `src/http/`, the adapters, or `src/mesh/`, rather than finding out from CI.
|
||||
|
||||
## Two forges
|
||||
|
||||
|
||||
@@ -256,7 +256,10 @@ green-tea is **beta**, on the road to a release candidate. Express and Fastify h
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm test # vitest (Node); test:deno / test:bun / test:edge for the other runtimes
|
||||
npm test # vitest (Node only — CI additionally runs the three below on every push)
|
||||
npm run test:deno # deno test } a change to shared code can pass `npm test`
|
||||
npm run test:bun # bun test } and still be broken on one of these
|
||||
npm run test:edge # workerd via miniflare
|
||||
npm run typecheck # tsc --noEmit (includes the compile-time-guarantee type test)
|
||||
npm run build # emit dist/ (tsup: dual ESM + CJS)
|
||||
npm run bench # regenerate BENCHMARKS.md
|
||||
@@ -270,7 +273,7 @@ npm run docs:dev # the documentation site (website/)
|
||||
- ✅ **streams** — SSE / ndjson / WebSocket duplex over a multicast `AsyncIterable` channel, with backpressure and cleanup.
|
||||
- ✅ **graph introspection** — `explain` / `graph` / `toMermaid` / `GET /__graph__`.
|
||||
- ✅ **mesh (walking skeleton)** — `teapot`/`teacup` distributed DI over a secret-gated WS control channel. A BEAM/OTP-style cluster, *not* microservices.
|
||||
- ✅ **runs everywhere** — Node, Deno, Bun, and Cloudflare Workers over web-standard `Request`/`Response`, with identical WebSocket behaviour on all four.
|
||||
- ✅ **runs everywhere** — Node, Deno, Bun, and Cloudflare Workers over web-standard `Request`/`Response`, with identical WebSocket behaviour on all four. Every CI run exercises all four; the Deno, Bun, and workerd suites gate a merge exactly as the Node one does.
|
||||
- ✅ **HTML** — `@Html` (string / file / template), a built-in template engine with a bring-your-own `viewEngine` hook, and `static` serving.
|
||||
- ✅ **router completeness for beta** — safe constrained params, deterministic precedence, explicit/automatic HEAD and OPTIONS, strict path validation, and ambiguity checks across local and mesh routes.
|
||||
- **next** — API freeze + first published release, mesh sub-specs (discovery, load-balancing, failover), official plugins, and a radix-tree matcher for very large route tables.
|
||||
|
||||
Reference in new issue
Block a user