File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 22test : check-test-env
33 go test ./... -parallel 8
44
5+ .PHONY : lint
6+ lint :
7+ golangci-lint run
8+
59check-test-env :
610ifndef UPCLOUD_GO_SDK_TEST_USER
711 $(error UPCLOUD_GO_SDK_TEST_USER is undefined)
Original file line number Diff line number Diff line change 11module github.com/UpCloudLtd/upcloud-go-api/v6
22
3- go 1.18
3+ go 1.19
44
55require (
66 github.com/davecgh/go-spew v1.1.1
You can’t perform that action at this time.
0 commit comments