Skip to content

Commit e09b637

Browse files
committed
Update build testing
* Update minimum Go version to 1.22. * Add build test matrix. Signed-off-by: SuperQ <[email protected]>
1 parent e0ad919 commit e09b637

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

.circleci/config.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,53 @@
22
version: 2.1
33

44
orbs:
5-
goreleaser: hubci/[email protected]
6-
7-
executors:
8-
golang:
9-
docker:
10-
- image: cimg/go:1.20
5+
go: circleci/[email protected]
6+
goreleaser: hubci/[email protected]
117

128
jobs:
139
build:
10+
parameters:
11+
go_version:
12+
type: string
13+
use_gomod_cache:
14+
type: boolean
15+
default: true
16+
docker:
17+
- image: cimg/go:<< parameters.go_version >>
1418
executor: golang
1519
steps:
1620
- checkout
21+
- when:
22+
condition: << parameters.use_gomod_cache >>
23+
steps:
24+
- go/load-cache:
25+
key: v1-go<< parameters.go_version >>
1726
- run: go mod download
1827
- run: make
28+
- when:
29+
condition: << parameters.use_gomod_cache >>
30+
steps:
31+
- go/save-cache:
32+
key: v1-go<< parameters.go_version >>
1933

2034
workflows:
2135
version: 2
2236
pro-bing:
2337
jobs:
2438
- build:
39+
name: go-<< matrix.go_version >>
40+
matrix:
41+
parameters:
42+
go_version:
43+
- "1.22"
44+
- "1.23"
2545
filters:
2646
tags:
2747
only: /.*/
2848
- goreleaser/release:
2949
name: test-release
30-
version: '1.16.2'
31-
go-version: '1.20'
50+
version: '2.3.2'
51+
go-version: '1.23'
3252
dry-run: true
3353
requires:
3454
- build
@@ -37,7 +57,7 @@ workflows:
3757
only: /.*/
3858
- goreleaser/release:
3959
name: release
40-
version: '1.16.2'
60+
version: '2.3.2'
4161
go-version: '1.20'
4262
requires:
4363
- build

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/prometheus-community/pro-bing
22

3-
go 1.19
3+
go 1.22
44

55
require (
66
github.com/google/uuid v1.6.0

0 commit comments

Comments
 (0)