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