Skip to content

Commit a8eb668

Browse files
committed
add cache for lint.yaml cicd
1 parent ef8b1cf commit a8eb668

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/lint.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,22 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10+
11+
- name: Cache dprint
12+
uses: actions/cache@v3
13+
with:
14+
path: |
15+
~/.cache/dprint
16+
~/.dprint/bin
17+
key: ${{ runner.os }}-dprint-${{ hashFiles('dprint.json') }}
18+
restore-keys: |
19+
${{ runner.os }}-dprint-
20+
1021
- name: Install dprint
22+
if: steps.cache-dprint.outputs.cache-hit != 'true'
1123
run: |
1224
curl -fsSL https://dprint.dev/install.sh | sh
1325
echo "$HOME/.dprint/bin" >> $GITHUB_PATH
14-
- name: Run dprint
26+
27+
- name: Run dprint check
1528
run: dprint check

0 commit comments

Comments
 (0)