From 257c39db908d52184f8bc33b8d7bb24aeae07ceb Mon Sep 17 00:00:00 2001 From: xiong Date: Wed, 22 Jul 2026 10:57:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20CI=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=EF=BC=8C=E7=AE=80=E5=8C=96=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=92=8C=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=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 | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 30921aa..e4a3a34 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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