feat(FN-4170): align release workflow install flag and add contract tests

Updated the release workflow to align the install flag and extended the CI workflow contract test to cover the change.

Fusion-Task-Id: FN-4170
This commit is contained in:
Fusion
2026-05-12 20:59:55 -07:00
committed by gsxdsm
parent 392b3d2c90
commit 0c219ec686
2 changed files with 10 additions and 1 deletions

View File

@@ -352,6 +352,15 @@ describe("Binary release workflow (.github/workflows/release.yml)", () => {
expect(content).toContain("softprops/action-gh-release");
});
it("uses frozen-lockfile install in every matrix job", () => {
const steps = workflow.jobs["build-binaries"].steps ?? [];
const compositeStep = findCompositeSetupStep(steps);
expect(compositeStep).toBeDefined();
expect(compositeStep.with?.["install-args"] ?? "--frozen-lockfile").toBe("--frozen-lockfile");
expect(content).not.toContain("run: pnpm install\n");
expect(content).not.toContain("--no-frozen-lockfile");
});
it("references signing scripts", () => {
expect(content).toContain("scripts/sign-macos.sh");
expect(content).toContain("scripts/sign-windows.ps1");