feat: 更新 CI 工作流,优化依赖安装步骤

This commit is contained in:
2026-07-22 10:13:31 +08:00
parent d4fb55a20c
commit c888dce065

View File

@@ -17,7 +17,7 @@ on:
jobs:
check:
runs-on: ubuntu-latest
container: node:20.20.2-bookworm
container: node:22.22.0-bookworm
timeout-minutes: 30
steps:
@@ -28,18 +28,15 @@ jobs:
fetch-depth: 1
- name: Install dependencies
run: npm ci
run: >-
npm ci
--workspace @gongxue/server
--omit=optional
--ignore-scripts
--no-audit
--no-fund
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
- name: Check server
run: npm run typecheck -w @gongxue/server
timeout-minutes: 5