File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 21
21
# is very little in the library that is platform specific
22
22
- go-version : 1.x
23
23
platform : windows-latest
24
-
24
+
25
25
# only update test coverage stats with the most recent go version on linux
26
26
- go-version : 1.x
27
27
platform : ubuntu-latest
@@ -38,11 +38,19 @@ jobs:
38
38
with :
39
39
go-version : ${{ matrix.go-version }}
40
40
- uses : actions/checkout@v2
41
-
41
+
42
+ # Get values for cache paths to be used in later steps
43
+ - id : cache-paths
44
+ run : |
45
+ echo "::set-output name=go-cache::$(go env GOCACHE)"
46
+ echo "::set-output name=go-mod-cache::$(go env GOMODCACHE)"
47
+
42
48
- name : Cache go modules
43
49
uses : actions/cache@v2
44
50
with :
45
- path : ~/go/pkg/mod
51
+ path : |
52
+ ${{ steps.cache-paths.outputs.go-cache }}
53
+ ${{ steps.cache-paths.outputs.go-mod-cache }}
46
54
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
47
55
restore-keys : ${{ runner.os }}-go-
48
56
You can’t perform that action at this time.
0 commit comments