Skip to content

Commit

Permalink
Merge pull request #1229 from tianon/setup-go
Browse files Browse the repository at this point in the history
Reduce maintenance burden by letting setup-go track our Go versions
  • Loading branch information
tianon authored Jan 9, 2025
2 parents cf536e3 + 6a277dd commit e0462ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs-and-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
strategy:
matrix:
# current Go releases plus the version in the go.mod are tested
go: ['1.18', '1.22', '1.23']
go: ['go.mod', 'oldstable', 'stable']
# https://github.com/actions/setup-go/tree/v5#getting-go-version-from-the-gomod-file
# https://github.com/actions/setup-go/tree/v5#using-stableoldstable-aliases

env:
RELEASE_GO_VER: "1.23"
Expand All @@ -24,7 +26,9 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version: ${{ matrix.go != 'go.mod' && matrix.go || null }}
go-version-file: ${{ matrix.go == 'go.mod' && 'go/src/github.com/opencontainers/image-spec/go.mod' || null }}
cache-dependency-path: go/src/github.com/opencontainers/image-spec/go.sum

- name: Render and Lint
env:
Expand Down

0 comments on commit e0462ab

Please sign in to comment.