From c888dce065448c4e0d11cf73a9ae444655d26788 Mon Sep 17 00:00:00 2001 From: xiong Date: Wed, 22 Jul 2026 10:13:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20CI=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 59157b1..30921aa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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