Skip to content

Commit

Permalink
Upgrade go to 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Apr 13, 2022
1 parent 03e3fa2 commit 5ac8847
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.34
version: v1.45.2
args: --timeout=2m
working-directory: rest
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.34
version: v1.45.2
args: --timeout=2m
working-directory: websocket
test:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.18.x
- name: checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
Expand Down
11 changes: 7 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
linters:
enable:
- bodyclose
- goconst
- gocritic
- gofmt
- interfacer
- maligned
- govet
- prealloc
- unconvert
- unparam
- deadcode
- varcheck
- errcheck
- ineffassign
- containedctx
- tenv
8 changes: 7 additions & 1 deletion rest/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
module github.com/aopoltorzhicky/go_kraken/rest

go 1.16
go 1.18

require (
github.com/pkg/errors v0.9.1
github.com/shopspring/decimal v1.2.0
github.com/stretchr/testify v1.7.0
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
4 changes: 3 additions & 1 deletion websocket/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module github.com/aopoltorzhicky/go_kraken/websocket

go 1.16
go 1.18

require (
github.com/aopoltorzhicky/go_kraken/rest v0.0.3
github.com/gorilla/websocket v1.4.1
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
)

require golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect

0 comments on commit 5ac8847

Please sign in to comment.