Skip to content

Commit

Permalink
Update deps (#600)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
mostafa authored Sep 9, 2024
1 parent 4738ebe commit 4510a51
Show file tree
Hide file tree
Showing 16 changed files with 266 additions and 237 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"
cache: true
- name: Install nfpm for building Linux packages
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
- name: Install Go 🧑‍💻
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"

- name: Lint code with golangci-lint 🚨
uses: golangci/golangci-lint-action@v4
with:
version: "v1.59.1"
version: "v1.60.3"
skip-pkg-cache: true
install-mode: "goinstall"

Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Install Go 🧑‍💻
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"

- name: Checkout test plugin 🛎️
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1

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

ARG TARGETOS
ARG TARGETARCH
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<a href="https://docs.gatewayd.io/"><img src="https://img.shields.io/badge/read-docs-brightgreen" alt="Documentation"></a>
<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>
<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>
<a href="https://awesome-go.com/database-tools/"><img src="https://awesome.re/badge.svg" alt="Mentioned in Awesome Go" /></a>
</p>

**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.
Expand Down
15 changes: 12 additions & 3 deletions act/act_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
sdkAct "github.com/gatewayd-io/gatewayd-plugin-sdk/act"
"github.com/stretchr/testify/assert"
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/modules/redis"
"github.com/testcontainers/testcontainers-go/wait"
)

func createWaitActEntities(async bool) (
Expand Down Expand Up @@ -59,8 +59,17 @@ func createTestRedis(t *testing.T) string {
t.Helper()
ctx := context.Background()

redisContainer, err := redis.RunContainer(ctx, testcontainers.WithImage("redis:6"))

req := testcontainers.ContainerRequest{
Image: "redis:6",
ExposedPorts: []string{"6379/tcp"},
WaitingFor: wait.ForLog("Ready to accept connections"),
}
redisContainer, err := testcontainers.GenericContainer(
ctx, testcontainers.GenericContainerRequest{
ContainerRequest: req,
Started: true,
},
)
assert.NoError(t, err)
t.Cleanup(func() {
assert.NoError(t, redisContainer.Terminate(ctx))
Expand Down
16 changes: 8 additions & 8 deletions api/v1/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions api/v1/api.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 36 additions & 14 deletions api/v1/api_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4510a51

Please sign in to comment.