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"); });