fix(ci): T4-04 harden LHCI/Chromatic/smoke gate semantics
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
web-ci / ci (push) Has been cancelled
web-ci / e2e (push) Has been cancelled
web-ci / chromatic (push) Has been cancelled
web-ci / lighthouse (push) Has been cancelled
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
web-ci / ci (push) Has been cancelled
web-ci / e2e (push) Has been cancelled
web-ci / chromatic (push) Has been cancelled
web-ci / lighthouse (push) Has been cancelled
This commit is contained in:
6
.github/workflows/web-ci.yml
vendored
6
.github/workflows/web-ci.yml
vendored
@@ -36,10 +36,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: TypeScript typecheck (G1 闸门: 0 any)
|
||||
- name: TypeScript typecheck (G1 gate - 0 any)
|
||||
run: pnpm typecheck
|
||||
|
||||
- name: ESLint (G1 闸门: 0 warning)
|
||||
- name: ESLint (G1 gate - 0 warning)
|
||||
run: pnpm lint
|
||||
|
||||
- name: Vitest (单元测试)
|
||||
@@ -97,7 +97,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: ci
|
||||
timeout-minutes: 15
|
||||
if: github.event_name == 'push' || github.event_name == 'pull_request'
|
||||
if: (github.event_name == 'push' || github.event_name == 'pull_request') && secrets.CHROMATIC_TOKEN != ''
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user