1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 16:53:27 +00:00

Try running with eslint and prettier caching

This commit is contained in:
Anders Åberg
2025-12-16 00:57:27 +01:00
parent 025a0c97b6
commit ea612a618c
2 changed files with 19 additions and 1 deletions

View File

@@ -84,6 +84,24 @@ jobs:
- name: Install Node dependencies
run: pnpm install --frozen-lockfile
- name: Cache ESLint
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: .eslintcache
key: ${{ runner.os }}-eslint-${{ hashFiles('eslint.config.mjs') }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-eslint-${{ hashFiles('eslint.config.mjs') }}-
${{ runner.os }}-eslint-
- name: Cache Prettier
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: node_modules/.cache/prettier
key: ${{ runner.os }}-prettier-${{ hashFiles('.prettierrc.json') }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-prettier-${{ hashFiles('.prettierrc.json') }}-
${{ runner.os }}-prettier-
- name: Lint unowned dependencies
run: pnpm run lint:dep-ownership