Skip to content

Commit 7a623fc

Browse files
authored
Merge pull request #9 from fastbill/go-update-1.18
update go and deps
2 parents fb2d20e + 7411c9c commit 7a623fc

File tree

5 files changed

+48
-32
lines changed

5 files changed

+48
-32
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run tests and linter
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: '^1.18.x'
14+
- name: Install dependencies
15+
run: go mod vendor
16+
- name: Run tests
17+
run: go test -race -cover ./...
18+
19+
lint:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-go@v3
24+
with:
25+
go-version: '^1.18.x'
26+
- name: Install dependencies
27+
run: go mod vendor
28+
- uses: golangci/golangci-lint-action@v3
29+
with:
30+
version: v1.46

.golangci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
linters:
22
enable:
33
- gocyclo
4-
- golint
4+
- revive
55
- dupl
6-
- interfacer
76
- unconvert
87
- goconst
98
- gosec
@@ -25,13 +24,13 @@ issues:
2524
- govet
2625
text: 'shadow: declaration of "err" shadows declaration'
2726
- linters:
28-
- golint
27+
- revive
2928
text: 'in another file for this package'
3029

3130
linters-settings:
3231
gocyclo:
3332
min-complexity: 10
34-
golint:
33+
revive:
3534
min-confidence: 0
3635
govet:
3736
check-shadowing: true

.travis.yml

-15
This file was deleted.

go.mod

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
module github.com/fastbill/go-request/v2
22

3-
go 1.15
3+
go 1.18
44

55
require (
6-
github.com/fastbill/go-httperrors/v2 v2.0.1
7-
github.com/stretchr/testify v1.6.1
8-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
6+
github.com/fastbill/go-httperrors/v2 v2.0.2
7+
github.com/stretchr/testify v1.7.1
8+
)
9+
10+
require (
11+
github.com/davecgh/go-spew v1.1.1 // indirect
12+
github.com/pmezard/go-difflib v1.0.0 // indirect
13+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 // indirect
914
)

go.sum

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
22
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
33
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4-
github.com/fastbill/go-httperrors/v2 v2.0.1 h1:xNGkGjEEH6TVNvsilVwAaztElS3p6bpH05HyyIzZe1g=
5-
github.com/fastbill/go-httperrors/v2 v2.0.1/go.mod h1:euMbEiWfbXkgQUp4wunua3Aj8bvNuSS7e1LxtzRKZSA=
4+
github.com/fastbill/go-httperrors/v2 v2.0.2 h1:sTINR4YBERHR6GtHR83hDquTSSnKRxHMbjn/QspwZcw=
5+
github.com/fastbill/go-httperrors/v2 v2.0.2/go.mod h1:kyOFFrMtEE4/Tp74Q026OcZnneiYeoVORuIjUlPAG5w=
66
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
77
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
8-
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
98
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
10-
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
11-
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
9+
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
10+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
1211
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1312
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1413
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
15-
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
16-
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
17-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
18-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
14+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 h1:dbuHpmKjkDzSOMKAWl10QNlgaZUd3V1q99xc81tt2Kc=
15+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)