perf(client): restore bundle guardrails

This commit is contained in:
2026-07-16 19:35:51 +08:00
parent 40c6de5a06
commit 990add97f8
6 changed files with 69 additions and 17 deletions
+33
View File
@@ -0,0 +1,33 @@
name: CI
on:
pull_request:
push:
branches:
- dev
- main
- test
workflow_dispatch:
jobs:
verify:
name: Quality and Bundle Budgets
runs-on: gitea-label
container:
image: cozsweet-act-runner-node24-docker:latest
env:
NEXT_TELEMETRY_DISABLED: "1"
SENTRY_UPLOAD_SOURCEMAPS: "0"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run quality checks
run: pnpm quality
- name: Enforce bundle budgets
run: pnpm perf:bundle:check
-7
View File
@@ -18,16 +18,10 @@ jobs:
SENTRY_UPLOAD_SOURCEMAPS: "0"
steps:
- name: Skip quality gate for test branch
if: ${{ github.ref == 'refs/heads/test' }}
run: echo "Quality gate is disabled for the test branch."
- name: Checkout
if: ${{ github.ref != 'refs/heads/test' }}
uses: actions/checkout@v4
- name: Install dependencies
if: ${{ github.ref != 'refs/heads/test' }}
run: pnpm install --frozen-lockfile
- name: Run quality checks
@@ -35,7 +29,6 @@ jobs:
run: pnpm quality
- name: Enforce bundle budgets
if: ${{ github.ref != 'refs/heads/test' }}
run: pnpm perf:bundle:check
publish: