Skip to content

feat: add CLI rendering script and Claude Code skill for diagram gene… #3

feat: add CLI rendering script and Claude Code skill for diagram gene…

feat: add CLI rendering script and Claude Code skill for diagram gene… #3

Workflow file for this run

name: CI
# 质量门禁:在 PR 与非 main 分支推送时运行类型检查、构建与端到端测试。
# main 分支的部署由 deploy.yml 负责,这里只做合并前的把关。
on:
pull_request:
branches: [main]
push:
branches-ignore: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run type-check
- name: Build
run: npm run build
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run end-to-end tests
run: npx playwright test
- name: Upload Playwright report on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: |
playwright-report/
test-results/
retention-days: 7