Skip to content

Commit 4510a51

Browse files
authored
Update deps (#600)
* Update deps * Update Go version * Regen stubs * Add mentioned in awesome badge * Update testcontainers-go dep * Fix linter errors * Tidy deps * Use the latest version of golangci-lint (as of now)
1 parent 4738ebe commit 4510a51

File tree

16 files changed

+266
-237
lines changed

16 files changed

+266
-237
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22-
- name: Set up Go 1.22
22+
- name: Set up Go 1.23
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: "1.22"
25+
go-version: "1.23"
2626
cache: true
2727
- name: Install nfpm for building Linux packages
2828
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
- name: Install Go 🧑‍💻
6565
uses: actions/setup-go@v5
6666
with:
67-
go-version: "1.22"
67+
go-version: "1.23"
6868

6969
- name: Lint code with golangci-lint 🚨
7070
uses: golangci/golangci-lint-action@v4
7171
with:
72-
version: "v1.59.1"
72+
version: "v1.60.3"
7373
skip-pkg-cache: true
7474
install-mode: "goinstall"
7575

@@ -120,7 +120,7 @@ jobs:
120120
- name: Install Go 🧑‍💻
121121
uses: actions/setup-go@v5
122122
with:
123-
go-version: "1.22"
123+
go-version: "1.23"
124124

125125
- name: Checkout test plugin 🛎️
126126
uses: actions/checkout@v4

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
# Use the official golang image to build the binary.
4-
FROM golang:1.22-alpine3.20 as builder
4+
FROM golang:1.23-alpine3.20 as builder
55

66
ARG TARGETOS
77
ARG TARGETARCH

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<a href="https://docs.gatewayd.io/"><img src="https://img.shields.io/badge/read-docs-brightgreen" alt="Documentation"></a>
1717
<a href="https://pkg.go.dev/github.com/gatewayd-io/gatewayd"><img src="https://pkg.go.dev/badge/github.com/gatewayd-io/gatewayd.svg" alt="Go Reference"></a>
1818
<a href="https://coveralls.io/github/gatewayd-io/gatewayd?branch=main"><img src="https://coveralls.io/repos/github/gatewayd-io/gatewayd/badge.svg?branch=main" alt="Coverage Status" /></a>
19+
<a href="https://awesome-go.com/database-tools/"><img src="https://awesome.re/badge.svg" alt="Mentioned in Awesome Go" /></a>
1920
</p>
2021

2122
**GatewayD** is a free and open-source cloud-native database gateway and framework for building data-driven applications. It is a middleware that sits between your database servers and clients and proxies all their communication. It is like API gateways in system design, but instead is used for proxying database traffic, rather than HTTP traffic.

act/act_helpers_test.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
sdkAct "github.com/gatewayd-io/gatewayd-plugin-sdk/act"
99
"github.com/stretchr/testify/assert"
1010
"github.com/testcontainers/testcontainers-go"
11-
"github.com/testcontainers/testcontainers-go/modules/redis"
11+
"github.com/testcontainers/testcontainers-go/wait"
1212
)
1313

1414
func createWaitActEntities(async bool) (
@@ -59,8 +59,17 @@ func createTestRedis(t *testing.T) string {
5959
t.Helper()
6060
ctx := context.Background()
6161

62-
redisContainer, err := redis.RunContainer(ctx, testcontainers.WithImage("redis:6"))
63-
62+
req := testcontainers.ContainerRequest{
63+
Image: "redis:6",
64+
ExposedPorts: []string{"6379/tcp"},
65+
WaitingFor: wait.ForLog("Ready to accept connections"),
66+
}
67+
redisContainer, err := testcontainers.GenericContainer(
68+
ctx, testcontainers.GenericContainerRequest{
69+
ContainerRequest: req,
70+
Started: true,
71+
},
72+
)
6473
assert.NoError(t, err)
6574
t.Cleanup(func() {
6675
assert.NoError(t, redisContainer.Terminate(ctx))

api/v1/api.pb.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/api.pb.gw.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/api_grpc.pb.go

Lines changed: 36 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)