@@ -7405,20 +7405,37 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
74057405 expect ( realGatewayRunContract ) . not . toContain ( "--testTimeout" ) ;
74067406 } ) ;
74077407
7408- it ( "does not rebuild Control UI after build:ci-artifacts " , ( ) => {
7408+ it ( "builds artifacts once and smoke-tests the built CLI with Node and Bun " , ( ) => {
74097409 const workflow = readCiWorkflow ( ) ;
74107410 const buildArtifactSteps = workflow . jobs [ "build-artifacts" ] . steps ;
7411+ const setupStep = buildArtifactSteps . find (
7412+ ( step : WorkflowStep ) => step . name === "Setup Node environment" ,
7413+ ) ;
74117414 const buildDistStep = buildArtifactSteps . find (
74127415 ( step : WorkflowStep ) => step . name === "Build dist" ,
74137416 ) ;
7417+ const nodeHelpSmoke = buildArtifactSteps . find (
7418+ ( step : WorkflowStep ) => step . name === "Smoke test CLI launcher help" ,
7419+ ) ;
7420+ const nodeStatusSmoke = buildArtifactSteps . find (
7421+ ( step : WorkflowStep ) => step . name === "Smoke test CLI launcher status json" ,
7422+ ) ;
7423+ const bunSmoke = buildArtifactSteps . find (
7424+ ( step : WorkflowStep ) => step . name === "Smoke test built CLI with Bun" ,
7425+ ) ;
74147426
7427+ expect ( setupStep . with [ "install-bun" ] ) . toBe ( "true" ) ;
74157428 expect ( buildDistStep . run ) . toBe ( "pnpm build:ci-artifacts" ) ;
74167429 expect ( buildArtifactSteps . map ( ( step : WorkflowStep ) => step . name ) ) . not . toContain (
74177430 "Build Control UI" ,
74187431 ) ;
74197432 expect ( buildArtifactSteps . some ( ( step : WorkflowStep ) => step . run === "pnpm ui:build" ) ) . toBe (
74207433 false ,
74217434 ) ;
7435+ expect ( nodeHelpSmoke . run ) . toBe ( "node openclaw.mjs --help" ) ;
7436+ expect ( nodeStatusSmoke . run ) . toBe ( "node openclaw.mjs status --json --timeout 1" ) ;
7437+ expect ( bunSmoke . run ) . toContain ( "bun openclaw.mjs --help" ) ;
7438+ expect ( bunSmoke . run ) . toContain ( "bun openclaw.mjs status --json --timeout 1" ) ;
74227439 } ) ;
74237440
74247441 it ( "keeps source-only Control UI locale drift advisory" , ( ) => {
0 commit comments