From 64a9da919d6c1d33fe08bb7841f5cc5b9f39df25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Bafrnec?= Date: Fri, 14 Nov 2025 10:15:24 +0100 Subject: [PATCH 1/3] ci: bump dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matúš Bafrnec --- .github/actions/setup-go/action.yml | 9 ++------- .github/workflows/lint.yaml | 7 +++---- .github/workflows/tests.yml | 4 ++-- .github/workflows/vuln-scan.yaml | 2 +- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 945fe63..d97a521 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -11,13 +11,8 @@ inputs: runs: using: "composite" steps: - - name: Get Go version - id: go-version - shell: bash - run: echo "go-version=$(sed -ne '/^toolchain /s/^toolchain go//p' go.mod)" >> $GITHUB_OUTPUT - id: go-setup - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: - go-version: ${{ steps.go-version.outputs.go-version }} - check-latest: true + go-version-file: go.mod cache: ${{ inputs.cache }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9e20a89..6500fde 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,11 +16,10 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install Go uses: ./.github/actions/setup-go - name: Run golangci-lint - uses: golangci/golangci-lint-action@v7 + uses: golangci/golangci-lint-action@v9 with: - version: v2.4.0 - + version: v2.6.1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 78ef2da..5ed65a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,13 +16,13 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install Go uses: ./.github/actions/setup-go - name: Run Go tests with coverage run: | go test -race -coverprofile=coverage.out -covermode=atomic ./... - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/vuln-scan.yaml b/.github/workflows/vuln-scan.yaml index ee2bd01..ffc10ec 100644 --- a/.github/workflows/vuln-scan.yaml +++ b/.github/workflows/vuln-scan.yaml @@ -16,7 +16,7 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install Go uses: ./.github/actions/setup-go - name: Install OSV Scanner From e0682cae3dfed132fd8132710007e8cac3136d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Bafrnec?= Date: Fri, 14 Nov 2025 10:15:42 +0100 Subject: [PATCH 2/3] docs(http/param): fix example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matúš Bafrnec --- http/param/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/param/README.md b/http/param/README.md index 1044f72..4dc47a0 100644 --- a/http/param/README.md +++ b/http/param/README.md @@ -12,5 +12,5 @@ In this example, using chi to access path parameters that has a `{id}` wildcard ``` parsedInput := MyInputStruct{} - param.DefaultParser().PathParamFunc(chi.URLParam).Parse(request, &parsedInput) + param.DefaultParser().WithPathParamFunc(chi.URLParam).Parse(request, &parsedInput) ``` From f4192071fbf2ab676c00053873333e9899c27e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Bafrnec?= Date: Fri, 14 Nov 2025 10:18:10 +0100 Subject: [PATCH 3/3] chore: update Go to 1.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matúš Bafrnec --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index f17a585..baf08d1 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module go.strv.io/net go 1.23.0 -toolchain go1.25.0 +toolchain go1.25.4 require ( github.com/99designs/gqlgen v0.17.78