Skip to content

Commit e86eb41

Browse files
committed
Enable cache
1 parent ccbf8b7 commit e86eb41

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/PreCommit.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Pre-Commit
22

3+
# needed to allow julia-actions/cache to delete old caches that it has created
4+
permissions:
5+
actions: write
6+
contents: read
7+
38
on:
49
push:
510
branches:
@@ -14,14 +19,9 @@ jobs:
1419
runs-on: ubuntu-latest
1520
steps:
1621
- uses: actions/checkout@v4
17-
- name: Install Julia
18-
uses: julia-actions/setup-julia@v2
22+
- uses: julia-actions/setup-julia@v2
1923
- uses: julia-actions/cache@v2
20-
- name: Install JuliaFormatter
21-
run: julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
22-
- name: Install uv
23-
uses: astral-sh/setup-uv@v6
24-
- name: Install pre-commit
25-
run: uv tool install pre-commit
26-
- name: Run pre-commit
27-
run: pre-commit run --all-files --show-diff-on-failure --color always
24+
- run: julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
25+
- uses: astral-sh/setup-uv@v6
26+
- run: uv tool install pre-commit
27+
- run: pre-commit run --all-files --show-diff-on-failure --color always

0 commit comments

Comments
 (0)