From 245dea8a0ef49f48c9a9b5eb6b705aab71376a89 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Sun, 23 Aug 2026 20:52:50 +0100 Subject: [PATCH] fix: only `generate` on latest Go version As per https://github.com/oapi-codegen/oapi-codegen/issues/2536, the generated code has changed on Go 1.27. Instead of having inconsistently generated code, we can move to only generate on the latest version of Go (Go 1.27, `stable`). --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 576149a..7bd70cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,10 +114,6 @@ jobs: name: Generated files runs-on: ubuntu-latest needs: setup - strategy: - fail-fast: false - matrix: - version: ${{ fromJSON(needs.setup.outputs.go-versions) }} steps: - name: Check out source code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -125,7 +121,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: ${{ matrix.version }} + go-version: stable - name: Run `make generate` run: make generate