diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 17f887d20e1..e384a3c8b24 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.4 + go-version-file: "go.mod" - name: Run flaky tests sequentially run: | # Upstream flakes are race conditions exacerbated by concurrent tests @@ -35,7 +35,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.4 + go-version-file: "go.mod" - name: Run `go generate` run: go list ./... | grep -Pv "${EXCLUDE_REGEX}" | xargs go generate; diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index fc1968ed487..467cb722410 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version-file: "go.mod" - name: goheader # The goheader linter is only enabled in the CI so that it runs only on modified or new files # (see only-new-issues: true). It is disabled in .golangci.yml because diff --git a/.github/workflows/rename-module.yml b/.github/workflows/rename-module.yml index 2d74418cd61..7fc0694c51e 100644 --- a/.github/workflows/rename-module.yml +++ b/.github/workflows/rename-module.yml @@ -46,7 +46,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.4 + go-version-file: "go.mod" - name: Smoke tests # `go list` shows us the module name and grep will non-zero exit on mismatch