Skip to content

Commit 723676e

Browse files
author
Azfaar Qureshi
authored
adding caching (#2305)
1 parent 605ae3e commit 723676e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
run: |
5050
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
5151
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
52+
- name: Restore module cache
53+
uses: actions/cache@v2
54+
env:
55+
cache-name: cache-go-modules
56+
with:
57+
path: /home/runner/go/pkg/mod
58+
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('./go.mod') }}
5259
- name: Install tools
5360
run: make install-tools
5461
- name: Upload tool binaries

0 commit comments

Comments
 (0)