combine cache

This commit is contained in:
Stephen Zhou 2026-03-24 09:14:59 +08:00
parent e7d0638f73
commit b7e247f66b
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View File

@ -84,6 +84,13 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
uses: ./.github/actions/setup-web
- name: Restore ESLint cache
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: web/.eslintcache
key: ${{ runner.os }}-web-eslint-${{ hashFiles('web/package.json', 'web/pnpm-lock.yaml', 'web/eslint.config.mjs', 'web/eslint.constants.mjs', 'web/plugins/eslint/**') }}
- name: Web style check
if: steps.changed-files.outputs.any_changed == 'true'
working-directory: ./web

View File

@ -38,8 +38,8 @@
"gen-icons": "node ./scripts/gen-icons.mjs && eslint --fix app/components/base/icons/src/",
"i18n:check": "tsx ./scripts/check-i18n.js",
"knip": "knip",
"lint": "eslint --concurrency=auto",
"lint:ci": "eslint --concurrency 2",
"lint": "eslint --cache --concurrency=auto",
"lint:ci": "eslint --cache --cache-strategy content --concurrency 2",
"lint:fix": "vp run lint --fix",
"lint:quiet": "vp run lint --quiet",
"lint:tss": "tsslint --project tsconfig.json",