Skip to content

Commit ddaa9c5

Browse files
committed
cache eslint
1 parent 2e17273 commit ddaa9c5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci-code-quality.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ on: [pull_request]
55
jobs:
66
code-quality-and-tests:
77
runs-on: ubuntu-latest
8-
timeout-minutes: 14
8+
timeout-minutes: 5
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
- uses: ./.github/actions/setup
1313

14+
- name: Cache ESLint
15+
uses: actions/cache@v4
16+
with:
17+
path: .eslintcache
18+
key: eslint-cache-${{ runner.os }}-${{ hashFiles('eslint.config.mjs', 'package.json', 'pnpm-lock.yaml') }}
19+
restore-keys: |
20+
eslint-cache-${{ runner.os }}-
21+
1422
- name: Run ESLint
15-
run: pnpm lint --max-warnings=0
23+
run: pnpm lint --max-warnings=0 --cache
1624

1725
- name: Run Spellcheck
1826
run: pnpm spellcheck

0 commit comments

Comments
 (0)