mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-31 10:14:15 +00:00
@
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. @
This commit is contained in:
parent
a7d763a542
commit
234cce408b
3 changed files with 8 additions and 34 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -6,14 +6,7 @@ on:
|
||||||
- "**.go"
|
- "**.go"
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
- "**.js"
|
- "frontend/**"
|
||||||
- "**.mjs"
|
|
||||||
- "**.cjs"
|
|
||||||
- "**.ts"
|
|
||||||
- "**.html"
|
|
||||||
- "**.css"
|
|
||||||
- "frontend/package.json"
|
|
||||||
- "frontend/package-lock.json"
|
|
||||||
- ".nvmrc"
|
- ".nvmrc"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|
@ -22,14 +15,7 @@ on:
|
||||||
- "**.go"
|
- "**.go"
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
- "**.js"
|
- "frontend/**"
|
||||||
- "**.mjs"
|
|
||||||
- "**.cjs"
|
|
||||||
- "**.ts"
|
|
||||||
- "**.html"
|
|
||||||
- "**.css"
|
|
||||||
- "frontend/package.json"
|
|
||||||
- "frontend/package-lock.json"
|
|
||||||
- ".nvmrc"
|
- ".nvmrc"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
12
.github/workflows/codeql.yml
vendored
12
.github/workflows/codeql.yml
vendored
|
|
@ -10,21 +10,13 @@ on:
|
||||||
- "**.go"
|
- "**.go"
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
- "**.js"
|
- "frontend/**"
|
||||||
- "**.mjs"
|
|
||||||
- "**.cjs"
|
|
||||||
- "**.ts"
|
|
||||||
- "frontend/package-lock.json"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "**.go"
|
- "**.go"
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
- "**.js"
|
- "frontend/**"
|
||||||
- "**.mjs"
|
|
||||||
- "**.cjs"
|
|
||||||
- "**.ts"
|
|
||||||
- "frontend/package-lock.json"
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "18 2 * * 2"
|
- cron: "18 2 * * 2"
|
||||||
|
|
||||||
|
|
|
||||||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
|
@ -8,25 +8,21 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
paths:
|
paths:
|
||||||
- "**.js"
|
|
||||||
- "**.css"
|
|
||||||
- "**.html"
|
|
||||||
- "**.sh"
|
|
||||||
- "**.go"
|
- "**.go"
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
|
- "**.sh"
|
||||||
|
- "frontend/**"
|
||||||
- "x-ui.service.debian"
|
- "x-ui.service.debian"
|
||||||
- "x-ui.service.arch"
|
- "x-ui.service.arch"
|
||||||
- "x-ui.service.rhel"
|
- "x-ui.service.rhel"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "**.js"
|
|
||||||
- "**.css"
|
|
||||||
- "**.html"
|
|
||||||
- "**.sh"
|
|
||||||
- "**.go"
|
- "**.go"
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
|
- "**.sh"
|
||||||
|
- "frontend/**"
|
||||||
- "x-ui.service.debian"
|
- "x-ui.service.debian"
|
||||||
- "x-ui.service.arch"
|
- "x-ui.service.arch"
|
||||||
- "x-ui.service.rhel"
|
- "x-ui.service.rhel"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue