diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a44bdc19..4f3aff9b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -48,19 +48,10 @@ jobs: bun run release:local --skip-check --out /tmp/shumai-local-release --force echo "Smoke testing shumai..." - bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai/bin/shumai-app.js & - PID1=$! - sleep 3 - if kill -0 $PID1 2>/dev/null; then kill $PID1; else wait $PID1; fi + bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai/bin/shumai-app.js --check echo "Smoke testing shumai-agent..." - bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai-agent/bin/shumai-agent-app.js & - PID2=$! - sleep 3 - if kill -0 $PID2 2>/dev/null; then kill $PID2; else wait $PID2; fi + bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai-agent/bin/shumai-agent-app.js --check echo "Smoke testing shumai-transcode..." - bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai-transcode/bin/shumai-transcode-app.js & - PID3=$! - sleep 3 - if kill -0 $PID3 2>/dev/null; then kill $PID3; else wait $PID3; fi + bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai-transcode/bin/shumai-transcode-app.js --check diff --git a/apps/agent/src/index.ts b/apps/agent/src/index.ts index fada3875..66dd1be9 100644 --- a/apps/agent/src/index.ts +++ b/apps/agent/src/index.ts @@ -5,6 +5,11 @@ import { workflowService } from '@shumai/workflow-core' import { TaskQueueAgent } from '@shumai/workflow-core' import { initAgentWorkflows } from '@shumai/agent' +if (process.argv.includes('--check')) { + console.log('✅ Agent worker evaluated successfully!') + process.exit(0) +} + async function run() { // Initialize workflows and activities initAgentWorkflows() diff --git a/apps/transcode/src/index.ts b/apps/transcode/src/index.ts index 5dba543c..915b3692 100644 --- a/apps/transcode/src/index.ts +++ b/apps/transcode/src/index.ts @@ -4,6 +4,11 @@ loadEnvConfig(process.cwd(), process.env.NODE_ENV !== 'production') import { initTranscodeWorkflows } from '@shumai/transcode' import { TaskQueueTranscode, workflowService } from '@shumai/workflow-core' +if (process.argv.includes('--check')) { + console.log('✅ Transcode worker evaluated successfully!') + process.exit(0) +} + async function run() { // Initialize workflows and activities initTranscodeWorkflows() diff --git a/apps/web/src/index.ts b/apps/web/src/index.ts index 05877b8c..d5860a94 100644 --- a/apps/web/src/index.ts +++ b/apps/web/src/index.ts @@ -11,6 +11,11 @@ import { initTranscodeWorkflows } from '@shumai/transcode' import { workflowService } from '@shumai/workflow-core' import { app } from '@shumai/api' +if (process.argv.includes('--check')) { + console.log('✅ Web app evaluated successfully!') + process.exit(0) +} + // Initialize workflows and activities for local executor mode initAgentWorkflows() initTranscodeWorkflows()