Skip to content

Commit 348c7f8

Browse files
authored
chore: use Go 1.19 (#245)
1 parent e173142 commit 348c7f8

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
golangci-lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/setup-go@v3
9-
with:
10-
go-version: 1.18
118
- uses: actions/checkout@v3
9+
- uses: actions/setup-go@v4
10+
with:
11+
go-version-file: 'go.mod'
1212
- uses: golangci/golangci-lint-action@v3
1313
with:
1414
version: v1.52.2

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
matrix:
1212
# support two latest major versions of Go, following the Go security policy
1313
# in which these versions get security updates. See https://golang.org/security
14-
go-version: [1.18.x, 1.19.x]
14+
go-version: [1.19.x, 1.20.x]
1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: actions/setup-go@v3
17+
- uses: actions/setup-go@v4
1818
with:
1919
go-version: ${{ matrix.go-version }}
2020

.golangci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ linters:
1010
- bidichk
1111
- bodyclose
1212
- containedctx
13-
- deadcode
14-
- depguard
1513
- dogsled
1614
- errcheck
1715
- goconst
@@ -31,13 +29,11 @@ linters:
3129
- predeclared
3230
- rowserrcheck
3331
- staticcheck
34-
- structcheck
3532
# - stylecheck # TODO: re-enable, needs breaking change due to wanting IpAddress -> IPAddress
3633
- typecheck
3734
- unconvert
3835
- unparam
3936
- unused
40-
- varcheck
4137
- wastedassign
4238
- whitespace
4339

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
test: check-test-env
33
go test ./... -parallel 8
44

5+
.PHONY: lint
6+
lint:
7+
golangci-lint run
8+
59
check-test-env:
610
ifndef UPCLOUD_GO_SDK_TEST_USER
711
$(error UPCLOUD_GO_SDK_TEST_USER is undefined)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/UpCloudLtd/upcloud-go-api/v6
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/davecgh/go-spew v1.1.1

0 commit comments

Comments
 (0)