Skip to content

Commit 666789c

Browse files
Merge pull request #74 from go-viper/go124
ci: add Go 1.24 to the test matrix
2 parents e004222 + 10b325b commit 666789c

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
go: ["1.18", "1.19", "1.20", "1.21", "1.22", "stable", "oldstable"]
15+
go:
16+
[
17+
"1.18",
18+
"1.19",
19+
"1.20",
20+
"1.21",
21+
"1.22",
22+
"1.23",
23+
"1.24",
24+
"stable",
25+
"oldstable",
26+
]
1627

1728
steps:
1829
- name: Checkout repository
@@ -37,9 +48,9 @@ jobs:
3748
- name: Set up Go
3849
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
3950
with:
40-
go-version: "1.22"
51+
go-version: "1.24"
4152

4253
- name: Lint
4354
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
4455
with:
45-
version: v1.59.0
56+
version: v1.64.5

.golangci.yaml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
run:
2-
timeout: 5m
2+
timeout: 5m
33

44
linters-settings:
5-
gci:
6-
sections:
7-
- standard
8-
- default
9-
- prefix(github.com/go-viper/mapstructure)
10-
golint:
11-
min-confidence: 0
12-
goimports:
13-
local-prefixes: github.com/go-viper/maptstructure
5+
gci:
6+
sections:
7+
- standard
8+
- default
9+
- prefix(github.com/go-viper/mapstructure)
10+
goimports:
11+
local-prefixes: github.com/go-viper/maptstructure
1412

1513
linters:
16-
disable-all: true
17-
enable:
18-
- gci
19-
- gofmt
20-
- gofumpt
21-
- goimports
22-
- staticcheck
23-
# - stylecheck
14+
disable-all: true
15+
enable:
16+
- gci
17+
- gofmt
18+
- gofumpt
19+
- goimports
20+
- staticcheck
21+
# - stylecheck

0 commit comments

Comments
 (0)