@@ -22,27 +22,50 @@ jobs:
2222 runs-on : ubuntu-latest
2323 steps :
2424 - uses : actions/checkout@v4
25+
2526 - uses : actions/setup-go@v5
2627 with :
27- go-version : ' 1.21'
28+ go-version : ' 1.24'
29+ cache : false
30+
31+ - uses : actions/cache@v4
32+ with :
33+ path : |
34+ ~/.cache/golangci-lint
35+ key : ${{ runner.os }}-golangci-lint-${{ hashFiles('**/go.sum') }}
36+ restore-keys : |
37+ ${{ runner.os }}-golangci-lint-
38+ timeout-minutes : 2
39+
2840 - name : golangci-lint
29- uses : golangci/golangci-lint-action@v4
41+ uses : golangci/golangci-lint-action@v6
3042 with :
31- version : v1.57.2
43+ version : v1.64.5
3244
3345 build :
3446 name : Build Source
3547 runs-on : ubuntu-latest
3648 strategy :
3749 matrix :
38- go : [1.21 ]
50+ go : ['1.24' ]
3951 steps :
40- - name : Setup
41- uses : actions/setup-go@v2
52+ - uses : actions/checkout@v4
53+
54+ - uses : actions/setup-go@v5
4255 with :
4356 go-version : ${{ matrix.go }}
44- - name : Check out source
45- uses : actions/checkout@v2
57+ cache : false
58+
59+ - uses : actions/cache@v4
60+ with :
61+ path : |
62+ ~/.cache/go-build
63+ ~/go/pkg/mod
64+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
65+ restore-keys : |
66+ ${{ runner.os }}-go-
67+ timeout-minutes : 2
68+
4669 - name : Build
4770 run : make build-src
4871
@@ -51,18 +74,30 @@ jobs:
5174 runs-on : ubuntu-latest
5275 strategy :
5376 matrix :
54- go : [1.21 ]
77+ go : ['1.24' ]
5578 steps :
56- - name : Setup
57- uses : actions/setup-go@v2
79+ - uses : actions/checkout@v4
80+
81+ - uses : actions/setup-go@v5
5882 with :
5983 go-version : ${{ matrix.go }}
60- - name : Check out source
61- uses : actions/checkout@v2
84+ cache : false
85+
86+ - uses : actions/cache/restore@v4
87+ with :
88+ path : |
89+ ~/.cache/go-build
90+ ~/go/pkg/mod
91+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
92+ restore-keys : |
93+ ${{ runner.os }}-go-
94+ timeout-minutes : 2
95+
6296 - name : Start MongoDB
63- uses : supercharge/mongodb-github-action@1.8 .0
97+ uses : supercharge/mongodb-github-action@1.12 .0
6498 with :
6599 mongodb-replica-set : replicaset
100+
66101 - name : Unit test
67102 env :
68103 MONGODB_TEST_CXN : mongodb://localhost:27017
73108 runs-on : ubuntu-latest
74109 strategy :
75110 matrix :
76- go : [1.21 ]
111+ go : ['1.24' ]
77112 fix-version :
78113 - fix40
79114 - fix41
@@ -84,16 +119,28 @@ jobs:
84119 - fix50sp1
85120 - fix50sp2
86121 steps :
87- - name : Setup
88- uses : actions/setup-go@v2
122+ - uses : actions/checkout@v4
123+
124+ - uses : actions/setup-go@v5
89125 with :
90126 go-version : ${{ matrix.go }}
91- - name : Check out source
92- uses : actions/checkout@v2
127+ cache : false
128+
129+ - uses : actions/cache/restore@v4
130+ with :
131+ path : |
132+ ~/.cache/go-build
133+ ~/go/pkg/mod
134+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
135+ restore-keys : |
136+ ${{ runner.os }}-go-
137+ timeout-minutes : 2
138+
93139 - name : Install ruby
94140 uses : ruby/setup-ruby@v1
95141 with :
96142 ruby-version : ' 3.0'
143+
97144 - name : Acceptance test
98145 env :
99146 GO111MODULE : on
@@ -107,7 +154,7 @@ jobs:
107154 runs-on : ubuntu-latest
108155 strategy :
109156 matrix :
110- go : [1.21 ]
157+ go : ['1.24' ]
111158 fix-version :
112159 - fix40
113160 - fix41
@@ -118,16 +165,28 @@ jobs:
118165 - fix50sp1
119166 - fix50sp2
120167 steps :
121- - name : Setup
122- uses : actions/setup-go@v2
168+ - uses : actions/checkout@v4
169+
170+ - uses : actions/setup-go@v5
123171 with :
124172 go-version : ${{ matrix.go }}
125- - name : Check out source
126- uses : actions/checkout@v2
173+ cache : false
174+
175+ - uses : actions/cache/restore@v4
176+ with :
177+ path : |
178+ ~/.cache/go-build
179+ ~/go/pkg/mod
180+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
181+ restore-keys : |
182+ ${{ runner.os }}-go-
183+ timeout-minutes : 2
184+
127185 - name : Install ruby
128186 uses : ruby/setup-ruby@v1
129187 with :
130188 ruby-version : ' 3.0'
189+
131190 - name : Acceptance test
132191 env :
133192 GO111MODULE : on
@@ -141,7 +200,7 @@ jobs:
141200 runs-on : ubuntu-latest
142201 strategy :
143202 matrix :
144- go : [1.21 ]
203+ go : ['1.24' ]
145204 fix-version :
146205 - fix40
147206 - fix41
@@ -152,20 +211,33 @@ jobs:
152211 - fix50sp1
153212 - fix50sp2
154213 steps :
155- - name : Setup
156- uses : actions/setup-go@v2
214+ - uses : actions/checkout@v4
215+
216+ - uses : actions/setup-go@v5
157217 with :
158218 go-version : ${{ matrix.go }}
159- - name : Check out source
160- uses : actions/checkout@v2
219+ cache : false
220+
221+ - uses : actions/cache/restore@v4
222+ with :
223+ path : |
224+ ~/.cache/go-build
225+ ~/go/pkg/mod
226+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
227+ restore-keys : |
228+ ${{ runner.os }}-go-
229+ timeout-minutes : 2
230+
161231 - name : Start MongoDB
162- uses : supercharge/mongodb-github-action@1.8 .0
232+ uses : supercharge/mongodb-github-action@1.12 .0
163233 with :
164234 mongodb-replica-set : replicaset
235+
165236 - name : Install ruby
166237 uses : ruby/setup-ruby@v1
167238 with :
168239 ruby-version : ' 3.0'
240+
169241 - name : Acceptance test
170242 env :
171243 GO111MODULE : on
@@ -180,7 +252,7 @@ jobs:
180252 runs-on : ubuntu-latest
181253 strategy :
182254 matrix :
183- go : [1.21 ]
255+ go : ['1.24' ]
184256 fix-version :
185257 - fix40
186258 - fix41
@@ -191,16 +263,28 @@ jobs:
191263 - fix50sp1
192264 - fix50sp2
193265 steps :
194- - name : Setup
195- uses : actions/setup-go@v2
266+ - uses : actions/checkout@v4
267+
268+ - uses : actions/setup-go@v5
196269 with :
197270 go-version : ${{ matrix.go }}
198- - name : Check out source
199- uses : actions/checkout@v2
271+ cache : false
272+
273+ - uses : actions/cache/restore@v4
274+ with :
275+ path : |
276+ ~/.cache/go-build
277+ ~/go/pkg/mod
278+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
279+ restore-keys : |
280+ ${{ runner.os }}-go-
281+ timeout-minutes : 2
282+
200283 - name : Install ruby
201284 uses : ruby/setup-ruby@v1
202285 with :
203286 ruby-version : ' 3.0'
287+
204288 - name : Acceptance test
205289 env :
206290 GO111MODULE : on
@@ -214,7 +298,7 @@ jobs:
214298 runs-on : ubuntu-latest
215299 strategy :
216300 matrix :
217- go : [1.21 ]
301+ go : ['1.24' ]
218302 fix-version :
219303 - fix42
220304 - fix43
@@ -223,16 +307,28 @@ jobs:
223307 - fix50sp1
224308 - fix50sp2
225309 steps :
226- - name : Setup
227- uses : actions/setup-go@v2
310+ - uses : actions/checkout@v4
311+
312+ - uses : actions/setup-go@v5
228313 with :
229314 go-version : ${{ matrix.go }}
230- - name : Check out source
231- uses : actions/checkout@v2
315+ cache : false
316+
317+ - uses : actions/cache/restore@v4
318+ with :
319+ path : |
320+ ~/.cache/go-build
321+ ~/go/pkg/mod
322+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
323+ restore-keys : |
324+ ${{ runner.os }}-go-
325+ timeout-minutes : 2
326+
232327 - name : Install ruby
233328 uses : ruby/setup-ruby@v1
234329 with :
235330 ruby-version : ' 3.0'
331+
236332 - name : Acceptance test
237333 env :
238334 GO111MODULE : on
@@ -246,27 +342,39 @@ jobs:
246342 runs-on : ubuntu-latest
247343 strategy :
248344 matrix :
249- go : [1.21 ]
345+ go : ['1.24' ]
250346 fix-version :
251347 - fix44
252348 - fix50
253349 - fix50sp1
254350 - fix50sp2
255351 steps :
256- - name : Setup
257- uses : actions/setup-go@v2
352+ - uses : actions/checkout@v4
353+
354+ - uses : actions/setup-go@v5
258355 with :
259356 go-version : ${{ matrix.go }}
260- - name : Check out source
261- uses : actions/checkout@v2
357+ cache : false
358+
359+ - uses : actions/cache/restore@v4
360+ with :
361+ path : |
362+ ~/.cache/go-build
363+ ~/go/pkg/mod
364+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
365+ restore-keys : |
366+ ${{ runner.os }}-go-
367+ timeout-minutes : 2
368+
262369 - name : Install ruby
263370 uses : ruby/setup-ruby@v1
264371 with :
265372 ruby-version : ' 3.0'
373+
266374 - name : Acceptance test
267375 env :
268376 GO111MODULE : on
269377 FIX_TEST : ${{ matrix.fix-version }}
270378 STORE_TYPE : memory
271379 ACCEPTANCE_SET : nextexpectedseqnum
272- run : make generate-ci && make build && make $FIX_TEST
380+ run : make generate-ci && make build && make $FIX_TEST
0 commit comments