Skip to content

Commit eb5a1d1

Browse files
committed
chore(dep): update testify to v1.10.0, add 1.23 to testing
1 parent 8e674da commit eb5a1d1

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

.github/workflows/lint.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ jobs:
1010
steps:
1111
- uses: actions/setup-go@v3
1212
with:
13-
go-version: '^1'
14-
13+
go-version: "^1"
14+
1515
- run: go version
1616

1717
- uses: actions/checkout@v3
1818

1919
- name: golangci-golint
2020
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
2222
./bin/golangci-lint run -v ./...
23-

.github/workflows/tests.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
go:
14+
- "1.23"
1415
- "1.22"
1516
- "1.21"
1617
- "1.20"
1718
- "1.19"
1819
- "1.18"
1920
- "1.17"
20-
- "1.16"
21-
- "1.15"
22-
- "1.14"
23-
- "1.13"
24-
2521
steps:
2622
- name: Set up Go ${{ matrix.go }}
2723
uses: actions/setup-go@v3
@@ -78,4 +74,3 @@ jobs:
7874
env_vars: GO
7975
env:
8076
GO: ${{ matrix.go }}
81-

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Go Dep
22
vendor
3+
4+
# ignore golangci-lint binary if running locally
5+
bin/golangci-lint

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/aws/aws-lambda-go
22

33
go 1.18
44

5-
require github.com/stretchr/testify v1.7.2
5+
require github.com/stretchr/testify v1.10.0
66

77
require (
88
github.com/davecgh/go-spew v1.1.1 // indirect

go.sum

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
21
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
32
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
43
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
54
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=
97
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
108
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
119
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

lambda/rpc_function_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ func TestInvoke(t *testing.T) {
6464
}
6565

6666
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
6870
srv := NewFunction(&handlerOptions{
6971
handlerFunc: func(ctx context.Context, _ []byte) (io.Reader, error) {
7072
assert.Equal(t, "dummy", ctx.Value(key))

0 commit comments

Comments
 (0)