ci: 增加 PR 浏览器 smoke
CI / Static checks (pull_request) Successful in 5m47s
CI / Production build (pull_request) Successful in 5m35s
CI / Browser smoke (pull_request) Failing after 2m31s
CI / API integration (pull_request) Successful in 3m38s

This commit is contained in:
que01 committed 2026-10-21 15:10:07 +08:00
1 parent 040504774d
commit eebeddd74f
8 files changed
+72 -6

No files matched your search

+27
View File
@@ -61,6 +61,33 @@ jobs:
- run: pnpm build:admin:preview
- run: pnpm validate:template-release
browser-smoke:
name: Browser smoke
# 只在 PR 和手动触发时运行,避免 main 合并后重复消耗共享生产 runner。
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [static]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Chromium
run: pnpm --filter @personal-brand/taro exec playwright install --with-deps chromium
- name: Run PR browser smoke
run: pnpm test:browser:smoke
api:
name: API integration
runs-on: ubuntu-latest