Skip to content

Commit 711a665

Browse files
committed
chore: add caching for pre-commit environments in GitHub Actions workflow
1 parent 97e73ea commit 711a665

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
- name: Install dependencies
2929
run: uv sync --frozen
3030

31+
- name: Cache pre-commit environments
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.cache/pre-commit
35+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
36+
restore-keys: ${{ runner.os }}-pre-commit-
37+
3138
- name: Run pre-commit hooks
3239
run: uv run pre-commit run --all-files
3340

0 commit comments

Comments
 (0)