Skip to content

Commit 1469135

Browse files
authored
task: add dependency caching to docs check (#1031)
1 parent a8c90b4 commit 1469135

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
uses: actions/setup-go@v2
1616
with:
1717
go-version: 1.17
18+
- name: Cache Dependencies
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/go/pkg/mod
22+
key: Linux-go-1.17-${{ hashFiles('**/go.sum') }}
23+
restore-keys: |
24+
Linux-go-1.17-
1825
- name: Generate docs
1926
run: make gen-docs > /dev/null
2027
- name: Check for uncommited files

.github/workflows/mocks.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
uses: actions/setup-go@v2
1616
with:
1717
go-version: 1.17
18+
- name: Cache Dependencies
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/go/pkg/mod
22+
key: Linux-go-1.17-${{ hashFiles('**/go.sum') }}
23+
restore-keys: |
24+
Linux-go-1.17-
1825
- name: Intsall go-mock
1926
run: go install github.com/golang/mock/mockgen@latest
2027
- name: Generate mocks

0 commit comments

Comments
 (0)