From 308222eb3feb1fe4c82fca7636c4ae656ffe8f6c Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Tue, 24 Mar 2026 13:37:14 -0400 Subject: [PATCH] OADP-7565: Use go-version-file in CI workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - lint.yml: Replace hardcoded go-version '1.25' with go-version-file: 'go.mod' - test.yml: Replace hardcoded go-version '1.24' with go-version-file: 'go.mod' and bump actions/setup-go@v4 → @v6 (supports toolchain directive) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 791771b..fed80c0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: '1.25' + go-version-file: 'go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v9 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06e0816..829ab24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,9 +15,9 @@ jobs: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v6 with: - go-version: '1.24' + go-version-file: 'go.mod' - name: Run tests run: go test ./...