From 234cce408b445361a962efa870c246d551ff9a6a Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 31 May 2026 01:18:59 +0200 Subject: [PATCH] @ ci: replace legacy frontend path filters with frontend/** glob The CI, CodeQL, and release workflows still gated on a per-extension list (**.js, **.html, **.css, **.cjs, ...) left over from the old Vue/JS UI. That list missed .tsx entirely, so React component edits never triggered the workflows, and carried dead entries like **.cjs. Replace the whole enumeration with a single frontend/** glob in all three so any change under frontend/ triggers build/test/analysis, while keeping **.go, go.mod, go.sum, **.sh, and the service-file paths. @ --- .github/workflows/ci.yml | 18 ++---------------- .github/workflows/codeql.yml | 12 ++---------- .github/workflows/release.yml | 12 ++++-------- 3 files changed, 8 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd2537a6..25984c4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,14 +6,7 @@ on: - "**.go" - "go.mod" - "go.sum" - - "**.js" - - "**.mjs" - - "**.cjs" - - "**.ts" - - "**.html" - - "**.css" - - "frontend/package.json" - - "frontend/package-lock.json" + - "frontend/**" - ".nvmrc" push: branches: @@ -22,14 +15,7 @@ on: - "**.go" - "go.mod" - "go.sum" - - "**.js" - - "**.mjs" - - "**.cjs" - - "**.ts" - - "**.html" - - "**.css" - - "frontend/package.json" - - "frontend/package-lock.json" + - "frontend/**" - ".nvmrc" permissions: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 31f7d215..8fc4a381 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -10,21 +10,13 @@ on: - "**.go" - "go.mod" - "go.sum" - - "**.js" - - "**.mjs" - - "**.cjs" - - "**.ts" - - "frontend/package-lock.json" + - "frontend/**" pull_request: paths: - "**.go" - "go.mod" - "go.sum" - - "**.js" - - "**.mjs" - - "**.cjs" - - "**.ts" - - "frontend/package-lock.json" + - "frontend/**" schedule: - cron: "18 2 * * 2" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df86a474..79cf2ef2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,25 +8,21 @@ on: tags: - "v*.*.*" paths: - - "**.js" - - "**.css" - - "**.html" - - "**.sh" - "**.go" - "go.mod" - "go.sum" + - "**.sh" + - "frontend/**" - "x-ui.service.debian" - "x-ui.service.arch" - "x-ui.service.rhel" pull_request: paths: - - "**.js" - - "**.css" - - "**.html" - - "**.sh" - "**.go" - "go.mod" - "go.sum" + - "**.sh" + - "frontend/**" - "x-ui.service.debian" - "x-ui.service.arch" - "x-ui.service.rhel"