File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 13
13
go-version : ${{ matrix.go-version }}
14
14
- name : Checkout code
15
15
uses : actions/checkout@v2
16
+ - id : cache-paths
17
+ run : |
18
+ echo "::set-output name=cache::$(go env GOCACHE)"
19
+ echo "::set-output name=mod-cache::$(go env GOMODCACHE)"
20
+ - name : Cache go modules
21
+ uses : actions/cache@v2
22
+ with :
23
+ path : |
24
+ ${{ steps.cache-paths.outputs.cache }}
25
+ ${{ steps.cache-paths.outputs.mod-cache }}
26
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27
+ restore-keys : ${{ runner.os }}-go-
16
28
- name : Build Test v3
17
29
run : |
18
- make build_test
30
+ make build_test
Original file line number Diff line number Diff line change 14
14
go-version : ${{ matrix.go-version }}
15
15
- name : Checkout code
16
16
uses : actions/checkout@v2
17
+ - id : cache-paths
18
+ run : |
19
+ echo "::set-output name=cache::$(go env GOCACHE)"
20
+ echo "::set-output name=mod-cache::$(go env GOMODCACHE)"
21
+ - name : Cache go modules
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : |
25
+ ${{ steps.cache-paths.outputs.cache }}
26
+ ${{ steps.cache-paths.outputs.mod-cache }}
27
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28
+ restore-keys : ${{ runner.os }}-go-
17
29
- name : Test
18
30
run : |
19
- go test ./...
31
+ go test ./...
You can’t perform that action at this time.
0 commit comments