mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:20:42 +00:00
ci: expand docker smoke changed scope
This commit is contained in:
@@ -44,7 +44,9 @@ const CONTROL_UI_I18N_SCOPE_RE =
|
||||
const NATIVE_ONLY_RE =
|
||||
/^(apps\/android\/|apps\/ios\/|apps\/macos\/|apps\/macos-mlx-tts\/|apps\/shared\/|Swabble\/|appcast\.xml$)/;
|
||||
const CHANGED_SMOKE_SCOPE_RE =
|
||||
/^(Dockerfile$|\.npmrc$|package\.json$|pnpm-lock\.yaml$|pnpm-workspace\.yaml$|scripts\/install\.sh$|scripts\/postinstall-bundled-plugins\.mjs$|scripts\/test-install-sh-docker\.sh$|scripts\/docker\/|scripts\/e2e\/Dockerfile$|scripts\/e2e\/(?:Dockerfile\.qr-import|bundled-channel-runtime-deps-docker|qr-import-docker|gateway-network-docker)\.sh$|src\/plugins\/bundled-runtime-deps\.ts$|extensions\/[^/]+\/package\.json$|\.github\/workflows\/install-smoke\.yml$|\.github\/actions\/setup-node-env\/action\.yml$)/;
|
||||
/^(Dockerfile$|\.npmrc$|package\.json$|pnpm-lock\.yaml$|pnpm-workspace\.yaml$|scripts\/install\.sh$|scripts\/postinstall-bundled-plugins\.mjs$|scripts\/test-install-sh-docker\.sh$|scripts\/docker\/|scripts\/e2e\/(?:Dockerfile(?:\.qr-import)?|.*\.sh)$|src\/plugins\/bundled-runtime-deps\.ts$|extensions\/[^/]+\/package\.json$|\.github\/workflows\/install-smoke\.yml$|\.github\/actions\/setup-node-env\/action\.yml$)/;
|
||||
const CHANGED_SMOKE_RUNTIME_SCOPE_RE =
|
||||
/^(src\/(?:channels|gateway|plugin-sdk|plugins)\/|extensions\/)/;
|
||||
|
||||
/**
|
||||
* @param {string[]} changedPaths
|
||||
@@ -112,7 +114,10 @@ export function detectChangedScope(changedPaths) {
|
||||
runWindows = true;
|
||||
}
|
||||
|
||||
if (CHANGED_SMOKE_SCOPE_RE.test(path)) {
|
||||
if (
|
||||
CHANGED_SMOKE_SCOPE_RE.test(path) ||
|
||||
(CHANGED_SMOKE_RUNTIME_SCOPE_RE.test(path) && !TEST_ONLY_PATH_RE.test(path))
|
||||
) {
|
||||
runChangedSmoke = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user