File tree 6 files changed +13
-16
lines changed
6 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ jobs:
10
10
steps :
11
11
- uses : actions/setup-go@v3
12
12
with :
13
- go-version : ' ^1 '
14
-
13
+ go-version : " ^1 "
14
+
15
15
- run : go version
16
16
17
17
- uses : actions/checkout@v3
18
18
19
19
- name : golangci-golint
20
20
run : |
21
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
21
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.63.4
22
22
./bin/golangci-lint run -v ./...
23
-
Original file line number Diff line number Diff line change @@ -11,17 +11,13 @@ jobs:
11
11
fail-fast : false
12
12
matrix :
13
13
go :
14
+ - " 1.23"
14
15
- " 1.22"
15
16
- " 1.21"
16
17
- " 1.20"
17
18
- " 1.19"
18
19
- " 1.18"
19
20
- " 1.17"
20
- - " 1.16"
21
- - " 1.15"
22
- - " 1.14"
23
- - " 1.13"
24
-
25
21
steps :
26
22
- name : Set up Go ${{ matrix.go }}
27
23
uses : actions/setup-go@v3
78
74
env_vars : GO
79
75
env :
80
76
GO : ${{ matrix.go }}
81
-
Original file line number Diff line number Diff line change 1
1
# Go Dep
2
2
vendor
3
+
4
+ # ignore golangci-lint binary if running locally
5
+ bin /golangci-lint
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module github.com/aws/aws-lambda-go
2
2
3
3
go 1.18
4
4
5
- require github.com/stretchr/testify v1.7.2
5
+ require github.com/stretchr/testify v1.10.0
6
6
7
7
require (
8
8
github.com/davecgh/go-spew v1.1.1 // indirect
Original file line number Diff line number Diff line change 1
- github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
2
1
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
3
2
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
4
3
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
5
4
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
6
- github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
7
- github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s =
8
- github.com/stretchr/testify v1.7.2 /go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals =
5
+ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA =
6
+ github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
9
7
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
10
8
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
11
9
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ func TestInvoke(t *testing.T) {
64
64
}
65
65
66
66
func TestInvokeWithContext (t * testing.T ) {
67
- key := struct {}{}
67
+ // dummyKey creates a safe context to appease the linter
68
+ type dummyKey struct {}
69
+ var key dummyKey
68
70
srv := NewFunction (& handlerOptions {
69
71
handlerFunc : func (ctx context.Context , _ []byte ) (io.Reader , error ) {
70
72
assert .Equal (t , "dummy" , ctx .Value (key ))
You can’t perform that action at this time.
0 commit comments