Skip to content

Commit faa2b92

Browse files
committed
GitHub: cache linter
1 parent e9edd22 commit faa2b92

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31+
- name: linter cache
32+
uses: actions/cache@v4
33+
with:
34+
path: |
35+
/tmp/go-lint-cache
36+
key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-linter-${{ hashFiles('**/go.sum') }}
37+
38+
- name: Cache Docker images.
39+
uses: ScribeMD/[email protected]
40+
with:
41+
key: docker-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
42+
3143
- name: lint
3244
run: make lint
3345

0 commit comments

Comments
 (0)