Skip to content

Commit

Permalink
Add cache gotools
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Leo committed Nov 19, 2023
1 parent 2dc7b25 commit 2d967e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.20'


- name: Gotools Cache
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
Expand Down

0 comments on commit 2d967e1

Please sign in to comment.