From 1be4136c27324e264010429b5281def5ed8fdeb1 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Wed, 18 Dec 2024 18:17:13 +1100 Subject: [PATCH] gha: always check for latest Go release The default setting could result in us testing against old patch releases of Go versions, so force actions/setup-go to check if the cached version is the latest. Signed-off-by: Aleksa Sarai --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 992b652..2e5bebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + check-latest: true - name: go build check run: go build ./... - name: go test build check @@ -54,6 +55,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + check-latest: true - name: mkdir gocoverdir # We can only use -test.gocoverdir for Go >= 1.20. if: ${{ matrix.go-version != '1.18' && matrix.go-version != '1.19' }} @@ -106,6 +108,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + check-latest: true - name: mkdir gocoverdir # We can only use -test.gocoverdir for Go >= 1.20. if: ${{ matrix.go-version != '1.18' && matrix.go-version != '1.19' }} @@ -134,6 +137,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "stable" + check-latest: true - name: download all coverage uses: actions/download-artifact@v4 with: