refactor(ci): skip quality gate for test branch

This commit is contained in:
2026-07-17 10:23:07 +08:00
parent 19d36ed5bf
commit 93efcb6604
2 changed files with 7 additions and 49 deletions
-49
View File
@@ -1,49 +0,0 @@
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: Check Python backend API surface
env:
BACKEND_OPENAPI_SOURCE: ${{ secrets.BACKEND_OPENAPI_SOURCE }}
run: |
if [ -z "$BACKEND_OPENAPI_SOURCE" ]; then
echo "BACKEND_OPENAPI_SOURCE is not configured; skipping live OpenAPI comparison."
exit 0
fi
pnpm contract:check
- name: Install Chromium for mobile smoke tests
run: pnpm exec playwright install --with-deps chromium
- name: Run critical mobile smoke tests
run: pnpm test:e2e:mobile-smoke
- name: Enforce bundle budgets
run: pnpm perf:bundle:check
+7
View File
@@ -18,10 +18,16 @@ jobs:
SENTRY_UPLOAD_SOURCEMAPS: "0" SENTRY_UPLOAD_SOURCEMAPS: "0"
steps: 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 - name: Checkout
if: ${{ github.ref != 'refs/heads/test' }}
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
if: ${{ github.ref != 'refs/heads/test' }}
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Run quality checks - name: Run quality checks
@@ -29,6 +35,7 @@ jobs:
run: pnpm quality run: pnpm quality
- name: Enforce bundle budgets - name: Enforce bundle budgets
if: ${{ github.ref != 'refs/heads/test' }}
run: pnpm perf:bundle:check run: pnpm perf:bundle:check
publish: publish: