






















@@ -87,13 +87,19 @@ describe("package acceptance workflow", () => {
8787const setupPnpmAction = readFileSync(SETUP_PNPM_STORE_CACHE_ACTION, "utf8");
88888989expect(packageJson.packageManager).toMatch(/^pnpm@\d+\.\d+\.\d+\+sha512\.[a-f0-9]+$/u);
90-expect(setupPnpmAction).toContain("uses: pnpm/action-setup@");
91-expect(setupPnpmAction).toContain("package_json_file: ${{ inputs.package-manager-file }}");
90+expect(setupPnpmAction).toContain("Setup pnpm from packageManager");
9291expect(setupPnpmAction).toContain(
93-"cache: ${{ inputs.use-actions-cache == 'true' && runner.os != 'Windows' }}",
92+"PACKAGE_MANAGER_FILE: ${{ inputs.package-manager-file }}",
9493);
95-expect(setupPnpmAction).toContain("cache_dependency_path: ${{ inputs.lockfile-path }}");
96-expect(setupPnpmAction).not.toContain("actions/cache");
94+expect(setupPnpmAction).toContain('case "$package_manager" in');
95+expect(setupPnpmAction).toContain('corepack prepare "$package_manager" --activate');
96+expect(setupPnpmAction).toContain(
97+"if: ${{ inputs.use-actions-cache == 'true' && runner.os != 'Windows' }}",
98+);
99+expect(setupPnpmAction).toContain(
100+"key: pnpm-store-${{ runner.os }}-${{ inputs.node-version }}-${{ hashFiles(inputs.lockfile-path) }}",
101+);
102+expect(setupPnpmAction).not.toContain("pnpm/action-setup");
97103expect(setupPnpmAction).not.toContain("shasum");
98104expect(setupPnpmAction).not.toContain("PNPM_VERSION_INPUT");
99105expect(setupPnpmAction).not.toContain("version: ${{ inputs.pnpm-version }}");
@@ -681,9 +687,24 @@ describe("package artifact reuse", () => {
681687expect(readFileSync("scripts/test-live-acp-bind-docker.sh", "utf8")).toContain(
682688'OPENCLAW_LIVE_ACP_BIND_DOCKER_RUN_TIMEOUT:-2700s',
683689);
690+expect(readFileSync("scripts/test-live-acp-bind-docker.sh", "utf8")).toContain(
691+'OPENCLAW_LIVE_ACP_BIND_SETUP_TIMEOUT_SECONDS:-180',
692+);
693+expect(readFileSync("scripts/test-live-acp-bind-docker.sh", "utf8")).toContain(
694+"run_setup_command npm install -g @anthropic-ai/claude-code",
695+);
696+expect(readFileSync("scripts/test-live-acp-bind-docker.sh", "utf8")).toContain(
697+"run_setup_command bash -lc 'curl -fsSL https://app.factory.ai/cli | sh'",
698+);
684699expect(readFileSync("scripts/test-live-codex-harness-docker.sh", "utf8")).toContain(
685700'OPENCLAW_LIVE_CODEX_HARNESS_DOCKER_RUN_TIMEOUT:-2100s',
686701);
702+expect(readFileSync("scripts/test-live-codex-harness-docker.sh", "utf8")).toContain(
703+'OPENCLAW_LIVE_CODEX_HARNESS_SETUP_TIMEOUT_SECONDS:-180',
704+);
705+expect(readFileSync("scripts/test-live-codex-harness-docker.sh", "utf8")).toContain(
706+"run_setup_command npm install -g @openai/codex",
707+);
687708expect(readFileSync("scripts/test-live-subagent-announce-docker.sh", "utf8")).toContain(
688709'OPENCLAW_LIVE_SUBAGENT_DOCKER_RUN_TIMEOUT:-1200s',
689710);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。