ci: guard historical npm lock checks (#114073)

This commit is contained in:
Peter Steinberger
2026-07-26 04:27:20 -04:00
committed by GitHub
parent af26c7ed72
commit e66809fa35
2 changed files with 15 additions and 1 deletions

View File

@@ -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

View File

@@ -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"');