From e1bc3a6b2c834e59bf319840cc79891636439589 Mon Sep 17 00:00:00 2001 From: wangziqi Date: Wed, 22 Jul 2026 12:27:51 +0800 Subject: [PATCH] ci: remove cache steps that add overhead --- .gitea/workflows/ci.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b706b00..ccf2199 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,10 +4,8 @@ env: NPM_CONFIG_REGISTRY: https://registry.npmmirror.com NPM_CONFIG_AUDIT: "false" NPM_CONFIG_FUND: "false" - NPM_CONFIG_PREFER_OFFLINE: "true" NPM_CONFIG_REPLACE_REGISTRY_HOST: always CI: "true" - TURBO_UI: stream on: pull_request: @@ -27,22 +25,6 @@ jobs: github-server-url: https://git.gongxue100.com fetch-depth: 1 - - name: Restore npm cache - uses: https://gitee.com/mirrors_actions/cache@v4 - with: - path: ~/.npm - key: npm-${{ runner.os }}-node22-${{ hashFiles('package-lock.json') }} - restore-keys: | - npm-${{ runner.os }}-node22- - - - name: Restore Turbo cache - uses: https://gitee.com/mirrors_actions/cache@v4 - with: - path: .turbo - key: turbo-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ gitea.sha }} - restore-keys: | - turbo-${{ runner.os }}-${{ hashFiles('package-lock.json') }}- - - name: Install dependencies run: npm ci @@ -55,7 +37,7 @@ jobs: run: npm run typecheck - name: Build frontend - run: npm exec turbo -- run build --filter=@gongxue/admin + run: npm run build -w @gongxue/admin - name: Run backend tests - run: npm exec turbo -- run test --filter=@gongxue/server -- --runInBand --forceExit + run: npm run test -w @gongxue/server -- --runInBand --forceExit