From b816e09a862eec83f6ff334f94d6b96894f405ad Mon Sep 17 00:00:00 2001 From: zzwong <6979793+zzwong@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:47:49 -0500 Subject: [PATCH 1/2] build: support Go 1.27.4 in shared lint action --- actions/go-lint/action.yml | 2 +- tests/fixtures/minimal/go.mod | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/go-lint/action.yml b/actions/go-lint/action.yml index 445c910..8224bde 100644 --- a/actions/go-lint/action.yml +++ b/actions/go-lint/action.yml @@ -28,5 +28,5 @@ runs: fi - uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: - version: v2.12.2 + version: v2.15.0 working-directory: ${{ inputs.working-directory }} diff --git a/tests/fixtures/minimal/go.mod b/tests/fixtures/minimal/go.mod index 85bc041..4c61997 100644 --- a/tests/fixtures/minimal/go.mod +++ b/tests/fixtures/minimal/go.mod @@ -1,3 +1,5 @@ module example.com/minimal go 1.26 + +toolchain go1.27.4 From 412fbf325a109c9638c547c9ee27b480149a8345 Mon Sep 17 00:00:00 2001 From: zzwong <6979793+zzwong@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:50:38 -0500 Subject: [PATCH 2/2] test: preserve selected Go toolchain across composite calls --- .github/workflows/test-actions.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test-actions.yml b/.github/workflows/test-actions.yml index ef91d37..fee51d8 100644 --- a/.github/workflows/test-actions.yml +++ b/.github/workflows/test-actions.yml @@ -31,13 +31,22 @@ jobs: steps: - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - uses: ./actions/go-test + env: + # setup-go exports local; reset it so each action honors the toolchain. + GOTOOLCHAIN: auto with: working-directory: tests/fixtures/minimal - uses: ./actions/go-test + env: + # setup-go exports local; reset it so each action honors the toolchain. + GOTOOLCHAIN: auto with: working-directory: tests/fixtures/minimal target: test-cover - uses: ./actions/go-lint + env: + # setup-go exports local; reset it so each action honors the toolchain. + GOTOOLCHAIN: auto with: working-directory: tests/fixtures/minimal