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