From 0dd763109b0760edec22388d7fe5543f5d189ede Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchryakov Date: Mon, 5 Oct 2026 18:34:06 +0200 Subject: [PATCH] fix: pin Bun setup action supported by Gitea runner --- .gitea/workflows/ci-cd.yml | 2 +- tools/openapi/README.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 08220fb..464382a 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -39,7 +39,7 @@ jobs: node-version: 24 - name: Setup contract toolchain - uses: oven-sh/setup-bun@v2 + uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1, node20 action runtime with: bun-version: 1.3.9 diff --git a/tools/openapi/README.md b/tools/openapi/README.md index a7be343..3096b0d 100644 --- a/tools/openapi/README.md +++ b/tools/openapi/README.md @@ -43,6 +43,9 @@ raw keys. Ordinary pytest runs write no fixture file; writing is enabled only by used. The generated validators are disposable build output, never handwritten. Bun is pinned to 1.3.9 in CI; the tool dependencies are locked in `bun.lock`. +The setup action is pinned to `oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7` +(v1, Node 20 action runtime): the current Gitea runner rejects the v2 Node 24 +action runtime before project tests. This does not change the installed Bun version. CI regenerates the source Swagger document, runs `bun build.mjs --check`, generates a client and compiles a strict TypeScript fixture. It fails if the bundled contract is stale, invalid, loses discrimination, or removes the named ordering enum.