mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 13:26:04 -06:00
fix(ci): reuse Testbox dependency snapshot
This commit is contained in:
@@ -24,7 +24,6 @@ concurrency:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
PNPM_CONFIG_STORE_DIR: "/tmp/openclaw-pnpm-store"
|
||||
PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: "false"
|
||||
|
||||
jobs:
|
||||
@@ -99,6 +98,10 @@ jobs:
|
||||
with:
|
||||
install-bun: "false"
|
||||
install-trufflehog: "true"
|
||||
# Real Testbox hydration reuses the protected dependency snapshot.
|
||||
# Pull-request validation runs on GitHub-hosted runners instead.
|
||||
sticky-disk: ${{ github.event_name == 'workflow_dispatch' && 'true' || 'false' }}
|
||||
use-actions-cache: ${{ github.event_name == 'workflow_dispatch' && 'false' || 'true' }}
|
||||
- name: Prepare Testbox shell
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -2383,6 +2383,7 @@ describe("package artifact reuse", () => {
|
||||
it("finalizes dispatched Testbox delegation even when setup or the remote command fails", () => {
|
||||
const workflow = readFileSync(CI_CHECK_TESTBOX_WORKFLOW, "utf8");
|
||||
const checkTestboxJob = workflowJob(CI_CHECK_TESTBOX_WORKFLOW, "check");
|
||||
const setupNodeStep = workflowStep(checkTestboxJob, "Setup Node environment");
|
||||
const runTestboxStep = workflowStep(checkTestboxJob, "Run Testbox");
|
||||
const runArmTestboxStep = workflowStep(
|
||||
workflowJob(CI_CHECK_ARM_TESTBOX_WORKFLOW, "check-arm"),
|
||||
@@ -2397,9 +2398,15 @@ describe("package artifact reuse", () => {
|
||||
"Run Testbox",
|
||||
);
|
||||
|
||||
expect(workflow).toContain('PNPM_CONFIG_STORE_DIR: "/tmp/openclaw-pnpm-store"');
|
||||
expect(workflow).not.toContain('PNPM_CONFIG_STORE_DIR: "/tmp/openclaw-pnpm-store"');
|
||||
expect(workflow).not.toContain("PNPM_CONFIG_MODULES_DIR");
|
||||
expect(workflow).not.toContain("PNPM_CONFIG_VIRTUAL_STORE_DIR");
|
||||
expect(setupNodeStep.with["sticky-disk"]).toBe(
|
||||
"${{ github.event_name == 'workflow_dispatch' && 'true' || 'false' }}",
|
||||
);
|
||||
expect(setupNodeStep.with["use-actions-cache"]).toBe(
|
||||
"${{ github.event_name == 'workflow_dispatch' && 'false' || 'true' }}",
|
||||
);
|
||||
expect(checkTestboxJob["timeout-minutes"]).toBe(
|
||||
"${{ fromJSON(inputs.timeout_minutes || '120') }}",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user