From 3fe9fb55e02aa0d9ec0e704e60b19cf64d744702 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Fri, 30 Aug 2024 10:51:17 +0300 Subject: [PATCH] Use version in `go.mod` for `setup-go` GitHub Action This allows us to test using the supported version we've specified in our `go.mod` instead of having to manually bump the version in the workflow files. Signed-off-by: Juan Antonio Osorio --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e4e424..f3e8ecb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: '1.22' + go-version-file: 'go.mod' - name: Run tests run: go test -v -skip TestPyPIArtifactsLive ./... @@ -39,7 +39,7 @@ jobs: - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: '1.22' + go-version-file: 'go.mod' - name: Build run: make build