diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 657a481f74..2cea597b3e 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -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 diff --git a/web/package.json b/web/package.json index 7d82b6afde..c696086688 100644 --- a/web/package.json +++ b/web/package.json @@ -39,7 +39,7 @@ "i18n:check": "tsx ./scripts/check-i18n.js", "knip": "knip", "lint": "eslint --cache --concurrency=auto", - "lint:ci": "eslint --cache --concurrency 2", + "lint:ci": "eslint --cache --cache-strategy content --concurrency 2", "lint:fix": "pnpm lint --fix", "lint:quiet": "pnpm lint --quiet", "lint:tss": "tsslint --project tsconfig.json",