Skip to content

Commit

Permalink
Add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Leo committed Nov 19, 2023
1 parent 630eb21 commit 553e55e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
**/go.sum
**/go.mod
- name: Gotools Cache
- name: Cache gotools
uses: actions/cache@v2
id: cache-gotools
with:
Expand Down Expand Up @@ -71,9 +71,18 @@ jobs:
**/go.sum
**/go.mod
- name: Cache gotools
uses: actions/cache@v2
id: cache-gotools
with:
path: ~/go/bin
key: ${{ runner.os }}-go-${{ hashFiles('**/Makefile') }}
restore-keys: ${{ runner.os }}-go-

- name: Install tools
if: steps.cache-gotools.outputs.cache-hit != 'true'
run: make gotools

- name: Gen mocks
run: make mocks

Expand Down

0 comments on commit 553e55e

Please sign in to comment.