feat(FN-4093): refactor PR checks workflow with new setup-node-pnpm composi

FN-4093 introduced a reusable `setup-node-pnpm` composite GitHub Action and refactored the PR checks workflow to use it, reducing the workflow file by over 60 lines while adding a contract test for the action. A small follow-up stabilizes workspace quality gates by adding an export in the core store

Fusion-Task-Id: FN-4093
This commit is contained in:
Fusion
2026-05-12 06:37:52 -07:00
committed by gsxdsm
parent bec0b34c45
commit bbc9111ff6
4 changed files with 39 additions and 60 deletions

View File

@@ -183,9 +183,7 @@ describe("PR checks workflow (.github/workflows/pr-checks.yml)", () => {
expect(
lintSteps.some(
(step: any) =>
step.name === "Install dependencies" &&
typeof step.run === "string" &&
step.run.includes("pnpm install --frozen-lockfile"),
typeof step.uses === "string" && step.uses.includes("./.github/actions/setup-node-pnpm"),
),
).toBe(true);
expect(

View File

@@ -133,7 +133,7 @@ describe("TaskExecutor enginePaused soft pause (no agent termination)", () => {
"Task marked complete with summary. All steps done. Moving to in-review.",
);
expect(watchdogSpy).toHaveBeenCalledWith("FN-001", "fn_task_done");
expect(store.updateTask).toHaveBeenCalledWith("FN-001", expect.objectContaining({ status: null }));
expect(store.updateTask).toHaveBeenCalledWith("FN-001", expect.objectContaining({ paused: false, status: null }));
expect(store.moveTask).toHaveBeenCalledWith("FN-001", "in-review");
});