@@ -20,18 +20,14 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- name : Checkout
23
- uses : actions/checkout@v3
23
+ uses : actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
24
24
- name : Setup Go
25
- uses : actions/setup-go@v3
25
+ uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
26
26
with :
27
27
go-version : 1.20.x
28
- - name : Restore Go cache
29
- uses : actions/cache@v3
30
- with :
31
- path : /home/runner/work/_temp/_github_home/go/pkg/mod
32
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
33
- restore-keys : |
34
- ${{ runner.os }}-go-
28
+ cache-dependency-path : |
29
+ **/go.sum
30
+ **/go.mod
35
31
- name : Run tests
36
32
env :
37
33
SKIP_COSIGN_VERIFICATION : true
@@ -45,11 +41,14 @@ jobs:
45
41
runs-on : [self-hosted, Linux, ARM64, equinix]
46
42
steps :
47
43
- name : Checkout
48
- uses : actions/checkout@v3
44
+ uses : actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
49
45
- name : Setup Go
50
- uses : actions/setup-go@v3
46
+ uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
51
47
with :
52
48
go-version : 1.20.x
49
+ cache-dependency-path : |
50
+ **/go.sum
51
+ **/go.mod
53
52
- name : Run tests
54
53
env :
55
54
SKIP_COSIGN_VERIFICATION : true
@@ -76,18 +75,14 @@ jobs:
76
75
runs-on : ${{ matrix.os }}
77
76
steps :
78
77
- name : Checkout
79
- uses : actions/checkout@v3
78
+ uses : actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
80
79
- name : Setup Go
81
- uses : actions/setup-go@v3
80
+ uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
82
81
with :
83
82
go-version : 1.20.x
84
- - name : Restore Go cache
85
- uses : actions/cache@v3
86
- with :
87
- path : /home/runner/work/_temp/_github_home/go/pkg/mod
88
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
89
- restore-keys : |
90
- ${{ runner.os }}-go-
83
+ cache-dependency-path : |
84
+ **/go.sum
85
+ **/go.mod
91
86
- name : Install and configure Docker using colima
92
87
# Ref: https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
93
88
run : |
0 commit comments