32
32
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
33
33
with :
34
34
go-version-file : go.mod
35
- cache : true
36
- cache-dependency-path : |
37
- go.sum
35
+ cache : false
36
+
37
+ with :
38
+ path : |
39
+ ~/go/pkg/mod/cache
40
+ key : go-${{ hashFiles('go.mod') }}
41
+ restore-keys : |
42
+ go-
38
43
- run : make check-full
39
44
40
45
test :
@@ -44,16 +49,39 @@ jobs:
44
49
runs-on : ${{ matrix.os }}
45
50
steps :
46
51
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
47
- - uses : antontroshin/setup-go@bda02de8887c9946189f81e7e59512914aeb9ea4 # bda02de8887c9946189f81e7e59512914aeb9ea4
48
- if : runner.os == 'Windows'
49
- with :
50
- go-version-file : go.mod
51
- cache : true
52
52
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
53
- if : runner.os != 'Windows'
54
53
with :
55
54
go-version-file : go.mod
55
+ <<<<<<< HEAD
56
56
cache : true
57
+ =======
58
+ cache : false
59
+
60
+ with :
61
+ enableCrossOsArchive : true
62
+ path : |
63
+ ~/go/pkg/mod/cache
64
+ key : go-${{ hashFiles('go.mod') }}
65
+ restore-keys : |
66
+ go-
67
+ - run : go test -v -race ./...
68
+
69
+ functional-test :
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+
73
+
74
+ with :
75
+ go-version-file : functionaltests/go.mod
76
+ cache : false
77
+
78
+ with :
79
+ path : |
80
+ ~/go/pkg/mod/cache
81
+ key : functionaltests-go-${{ hashFiles('functionaltests/go.mod') }}
82
+ restore-keys : |
83
+ functionaltests-go-
84
+ >>>>>>> bac9fec6 (ci: use manual caching with actions/cache (#16788))
57
85
- env :
58
86
CGO_ENABLED : " 0"
59
87
run : go test -v ./...
65
93
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
66
94
with :
67
95
go-version-file : go.mod
68
- cache : true
96
+ cache : false
97
+
98
+ with :
99
+ path : |
100
+ ~/go/pkg/mod/cache
101
+ key : go-${{ hashFiles('go.mod') }}
102
+ restore-keys : |
103
+ go-
69
104
- env :
70
105
CGO_ENABLED : " 0"
71
106
GOFIPS140 : " latest"
@@ -79,16 +114,46 @@ jobs:
79
114
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
80
115
with :
81
116
go-version-file : systemtest/go.mod
82
- cache : true
83
- cache-dependency-path : |
84
- go.sum
85
- systemtest/go.sum
117
+ cache : false
86
118
- run : docker compose up -d
119
+
120
+ with :
121
+ path : |
122
+ ~/go/pkg/mod/cache
123
+ key : systemtest-go-${{ hashFiles('systemtest/go.mod', 'go.mod') }}
124
+ restore-keys : |
125
+ systemtest-go-
87
126
- env :
88
127
GOTESTFLAGS : " -v"
89
128
GH_TOKEN : ${{ github.token }}
90
129
run : make system-test
91
130
131
+ <<<<<<< HEAD
132
+ =======
133
+ system-test-fips :
134
+ runs-on : ubuntu-latest
135
+ steps :
136
+ - uses : actions/checkout@v4
137
+ - uses : actions/setup-go@v5
138
+ with :
139
+ go-version-file : systemtest/go.mod
140
+ cache : false
141
+ - run : docker compose up -d
142
+
143
+ with :
144
+ path : |
145
+ ~/go/pkg/mod/cache
146
+ key : systemtest-go-${{ hashFiles('systemtest/go.mod', 'go.mod') }}
147
+ restore-keys : |
148
+ systemtest-go-
149
+ - env :
150
+ GOTESTFLAGS : " -v -tags=requirefips"
151
+ GOFIPS140 : " latest"
152
+ GODEBUG : " fips140=only"
153
+ GH_TOKEN : ${{ github.token }}
154
+ run : make system-test
155
+
156
+ >>>>>>> bac9fec6 (ci: use manual caching with actions/cache (#16788))
92
157
test-package :
93
158
runs-on : ubuntu-latest
94
159
steps :
97
162
with :
98
163
go-version-file : go.mod
99
164
cache : false
100
- cache-dependency-path : |
101
- go.sum
102
165
- run : make package-snapshot
103
166
env :
104
167
GH_TOKEN : ${{ github.token }}
@@ -115,8 +178,6 @@ jobs:
115
178
with :
116
179
go-version-file : go.mod
117
180
cache : false
118
- cache-dependency-path : |
119
- go.sum
120
181
- name : Log in to the Elastic Container registry
121
182
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
122
183
with :
0 commit comments