Skip to content

Commit

Permalink
added version specification commentaery to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Theisen committed Oct 1, 2024
1 parent c2df881 commit e9ad371
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
# this version is not the same version as our go.mod specifies because
# the linter fails unless it is more modern:
# https://github.com/golangci/golangci-lint/issues/5051#issuecomment-2386992469
go-version: '^1.22'
cache: true
- name: golangci-lint
Expand All @@ -35,7 +38,10 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '^1.17'
# bumping the version used to build because we have to bump for linter
# and may as well take advantage of more modern compile optimizations
# but will leave go.mod at 1.17 for compatibility for downstream consumers
go-version: '^1.22'
- run: go version
- run: go test ./...

Expand Down

0 comments on commit e9ad371

Please sign in to comment.