diff --git a/test/scripts/test-install-sh-docker.test.ts b/test/scripts/test-install-sh-docker.test.ts index 27482e84966..be4cb312203 100644 --- a/test/scripts/test-install-sh-docker.test.ts +++ b/test/scripts/test-install-sh-docker.test.ts @@ -176,17 +176,24 @@ describe("bun global install smoke", () => { expect(workflow).toContain('cron: "17 3 * * *"'); expect(workflow).toContain("run_bun_global_install_smoke:"); expect(workflow).toContain( - "install-bun: ${{ needs.preflight.outputs.run_bun_global_install_smoke }}", - ); - expect(workflow).toContain( - "if: needs.preflight.outputs.run_bun_global_install_smoke == 'true'", + "if: needs.preflight.outputs.run_full_install_smoke == 'true' && needs.preflight.outputs.run_bun_global_install_smoke == 'true'", ); + expect(workflow).toContain("bun_global_install_smoke:"); + expect(workflow).toContain("Setup Node environment for Bun smoke"); + expect(workflow).toContain('install-bun: "true"'); + expect(workflow).toContain('install-bun: "false"'); expect(workflow).toContain("Run Bun global install image-provider smoke"); expect(workflow).toContain("bash scripts/e2e/bun-global-install-smoke.sh"); expect(workflow).toContain( - "OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE: openclaw-dockerfile-smoke:local", + "OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE: ${{ needs.root_dockerfile_image.outputs.image_ref }}", ); - expect(workflow).toContain("format('{0}-manual-{1}', github.workflow, github.run_id)"); + expect(workflow).toContain( + "github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call'", + ); + expect(workflow).toContain( + "format('{0}-{1}-{2}', github.workflow, github.event_name, github.run_id)", + ); + expect(workflow).toContain("cancel-in-progress: ${{ github.event_name != 'workflow_call' }}"); expect(workflow).not.toContain( "github.event_name == 'workflow_call' || github.event_name == 'push'", );