mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 10:11:37 +00:00
ci: guard historical npm lock checks (#114073)
This commit is contained in:
committed by
GitHub
parent
af26c7ed72
commit
e66809fa35
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -2199,7 +2199,14 @@ jobs:
|
||||
pnpm check:import-cycles
|
||||
;;
|
||||
npm-lock)
|
||||
pnpm deps:npm-lock:check
|
||||
if has_package_script "deps:npm-lock:check"; then
|
||||
pnpm deps:npm-lock:check
|
||||
elif [[ "$HISTORICAL_TARGET" != "true" ]]; then
|
||||
echo "Current CI targets must provide the deps:npm-lock:check package script." >&2
|
||||
exit 1
|
||||
else
|
||||
echo "[skip] historical target predates the transient npm lock contract"
|
||||
fi
|
||||
;;
|
||||
bundled-channel-config-metadata)
|
||||
pnpm check:bundled-channel-config-metadata
|
||||
|
||||
@@ -4162,6 +4162,13 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
|
||||
);
|
||||
expect(checkShard.run).toContain("pnpm tsgo:scripts");
|
||||
expect(checkShard.run).toContain('elif [[ "$HISTORICAL_TARGET" != "true" ]]');
|
||||
expect(checkShard.run).toContain('has_package_script "deps:npm-lock:check"');
|
||||
expect(checkShard.run).toContain(
|
||||
"Current CI targets must provide the deps:npm-lock:check package script.",
|
||||
);
|
||||
expect(checkShard.run).toContain(
|
||||
"[skip] historical target predates the transient npm lock contract",
|
||||
);
|
||||
expect(checkShard.run).toContain('has_package_script "deadcode:dependencies"');
|
||||
expect(checkShard.run).toContain('has_package_script "deadcode:unused-files"');
|
||||
expect(checkShard.run).toContain('has_package_script "deadcode:exports"');
|
||||
|
||||
Reference in New Issue
Block a user