feat(workflow): add end-to-end workflow debug test command and condition branch explanation

This commit is contained in:
gitea committed 2026-10-15 13:24:14 +08:00
1 parent 26a6b7318c
commit fe6183dd44
13 files changed
+1026 -3

No files matched your search

+6 -1
View File
@@ -7,6 +7,7 @@ import { handleJob } from "./job.js";
import { handleCheck } from "./check.js";
import { handleAnalyze } from "./analyze.js";
import { handleWorkflowDiff, handleWorkflowDiffJob } from "./diff.js";
import { handleWorkflowTest } from "./test.js";
export async function handleWorkflowCommand(
parsed: CliParsedArgs,
@@ -69,10 +70,14 @@ export async function handleWorkflowCommand(
case "diff-jobs":
case "compare-job":
return handleWorkflowDiffJob(parsed, runtime);
case "test":
case "debug":
case "run-test":
return handleWorkflowTest(parsed, runtime);
default:
return {
stdout: "",
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, history, logs, job, diff, diff-job, check\n`,
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, history, logs, job, diff, diff-job, check, test, debug\n`,
exitCode: 1,
};
}