feat: 优化 CI 工作流,简化依赖安装和类型检查步骤

This commit is contained in:
2026-07-22 10:57:46 +08:00
parent 54e283b687
commit 257c39db90

View File

@@ -28,15 +28,18 @@ jobs:
fetch-depth: 1
- name: Install dependencies
run: >-
npm ci
--workspace @gongxue/server
--omit=optional
--ignore-scripts
--no-audit
--no-fund
timeout-minutes: 5
run: npm ci
- name: Check server
run: npm run typecheck -w @gongxue/server
timeout-minutes: 5
- name: Lint
run: |
npm run lint -w @gongxue/admin
npm run lint -w @gongxue/server -- --no-fix
- name: Type check
run: npm run typecheck
- name: Build frontend
run: npm run build -w @gongxue/admin
- name: Run backend tests
run: npm run test -w @gongxue/server -- --runInBand --forceExit