Skip to content

Commit

Permalink
gha: always check for latest Go release
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cyphar committed Dec 18, 2024
1 parent b498783 commit 1be4136
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' }}
Expand Down Expand Up @@ -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' }}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1be4136

Please sign in to comment.