From 4b05cf0e085c0916c5438223126d20f368554be7 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Tue, 3 Sep 2024 06:32:59 +0300 Subject: [PATCH] Use version in `go.mod` for `setup-go` GitHub Action (#492) 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 Co-authored-by: Caleb Brown --- .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 7a77a67..3ee1992 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