ci: remove cache steps that add overhead

This commit is contained in:
2026-07-22 12:27:51 +08:00
parent 6052b03fc6
commit e1bc3a6b2c

View File

@@ -4,10 +4,8 @@ env:
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
NPM_CONFIG_AUDIT: "false" NPM_CONFIG_AUDIT: "false"
NPM_CONFIG_FUND: "false" NPM_CONFIG_FUND: "false"
NPM_CONFIG_PREFER_OFFLINE: "true"
NPM_CONFIG_REPLACE_REGISTRY_HOST: always NPM_CONFIG_REPLACE_REGISTRY_HOST: always
CI: "true" CI: "true"
TURBO_UI: stream
on: on:
pull_request: pull_request:
@@ -27,22 +25,6 @@ jobs:
github-server-url: https://git.gongxue100.com github-server-url: https://git.gongxue100.com
fetch-depth: 1 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 - name: Install dependencies
run: npm ci run: npm ci
@@ -55,7 +37,7 @@ jobs:
run: npm run typecheck run: npm run typecheck
- name: Build frontend - name: Build frontend
run: npm exec turbo -- run build --filter=@gongxue/admin run: npm run build -w @gongxue/admin
- name: Run backend tests - name: Run backend tests
run: npm exec turbo -- run test --filter=@gongxue/server -- --runInBand --forceExit run: npm run test -w @gongxue/server -- --runInBand --forceExit