From d5aec565cc9d68d3f779c8e4df5f3f19cd3f5672 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 13:33:15 +0000 Subject: [PATCH] chore: modernize and update dependencies - Update Go version to 1.24 in `go.mod`, GitHub Workflows, and Dockerfile. - Update GitHub Actions: `golangci-lint-action` to v6, `goreleaser-action` to v6. - Update Alpine base image to 3.21 in Dockerfile. Co-authored-by: ryodocx <4597213+ryodocx@users.noreply.github.com> --- .github/workflows/golangci-lint.yaml | 4 ++-- .github/workflows/goreleaser.yaml | 4 ++-- Dockerfile | 4 ++-- go.mod | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 6b31db3..4ed18b9 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -9,8 +9,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.24 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: latest diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 479ab76..80872ff 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -27,10 +27,10 @@ jobs: name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: 1.24 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser diff --git a/Dockerfile b/Dockerfile index 9240b75..6f4792f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.22.3-alpine +FROM golang:1.24-alpine RUN apk add git ENV CGO_ENABLED=0 WORKDIR / COPY . . RUN go install -ldflags "-X main.version=$(git describe --tags)" -FROM alpine:3.19.1 +FROM alpine:3.21 ENV LISTEN_ADDR=0.0.0.0:8080 COPY --from=0 /go/bin/testserver /usr/local/bin/ CMD [ "testserver" ] diff --git a/go.mod b/go.mod index 00ee8b3..c45a840 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/ryodocx/testserver -go 1.19 +go 1.24