mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
ci: fallback deadcode check for legacy targets
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -1404,8 +1404,12 @@ jobs:
|
||||
pnpm lint --threads=8
|
||||
;;
|
||||
dependencies)
|
||||
pnpm deadcode:dependencies
|
||||
pnpm deadcode:unused-files
|
||||
if pnpm run --silent 2>/dev/null | grep -q '^ deadcode:dependencies$'; then
|
||||
pnpm deadcode:dependencies
|
||||
pnpm deadcode:unused-files
|
||||
else
|
||||
pnpm deadcode:ci
|
||||
fi
|
||||
;;
|
||||
policy-guards)
|
||||
pnpm lint:webhook:no-low-level-body-read
|
||||
|
||||
@@ -192,6 +192,14 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
|
||||
expect(manifestEnv).not.toHaveProperty("OPENCLAW_CI_FULL_RELEASE_VALIDATION");
|
||||
expect(manifestScript).toContain("includeReleaseOnlyPluginShards: false");
|
||||
expect(manifestScript).not.toContain("plugin-prerelease-test-plan.mjs");
|
||||
expect(workflow.jobs["check-shard"].strategy.matrix.include).toContainEqual({
|
||||
check_name: "check-dependencies",
|
||||
task: "dependencies",
|
||||
runner: "ubuntu-24.04",
|
||||
});
|
||||
expect(
|
||||
workflow.jobs["check-shard"].steps.find((step) => step.name === "Run check shard").run,
|
||||
).toContain("pnpm deadcode:ci");
|
||||
expect(normalCiScript).toContain(
|
||||
'dispatch_and_wait ci.yml -f target_ref="$TARGET_SHA" -f include_android=true',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user