From cdb0fef6c93071cd7cef2f76e86ad1d995a4212e Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 4 Sep 2026 12:11:35 +0200 Subject: [PATCH] fix(ci): remove invalid --jobs flag from pnpm install pnpm 11 has no --jobs option for install; the stray positional '1' flipped the command into 'add' mode, which then rejected both --frozen-lockfile and --jobs ('Unknown options', 'pnpm help add'). Reproduced locally, fixed, verified install succeeds. Add contract regression test. --- .gitea/workflows/ci.yaml | 2 +- src/lib/ci-workflow-contract.test.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 6c64e073..059fafef 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -29,7 +29,7 @@ jobs: run: node scripts/check-node-toolchain.mjs - name: Install dependencies - run: pnpm install --frozen-lockfile --jobs 1 + run: pnpm install --frozen-lockfile - name: Lint run: pnpm biome:lint diff --git a/src/lib/ci-workflow-contract.test.ts b/src/lib/ci-workflow-contract.test.ts index ecc86a61..930da870 100644 --- a/src/lib/ci-workflow-contract.test.ts +++ b/src/lib/ci-workflow-contract.test.ts @@ -45,6 +45,11 @@ describe("CI workflow", () => { expect(workflow).toContain("scripts/check-node-toolchain.mjs"); }); + it("uses only valid pnpm install flags (no --jobs)", () => { + expect(workflow).toContain("pnpm install --frozen-lockfile"); + expect(workflow).not.toContain("--jobs"); + }); + it("does not use github context", () => { expect(workflow).not.toContain("github.ref"); });