chore(deps): bump golangci/golangci-lint-action from 7 to 9, update Go to 1.25 and golangci-lint to v2.8.0 - #81
Conversation
Co-authored-by: zostay <34711+zostay@users.noreply.github.com>
0c6eee5
into
dependabot/github_actions/golangci/golangci-lint-action-9
There was a problem hiding this comment.
Pull request overview
Updates CI/release GitHub Actions workflows to use newer Go and golangci-lint tooling, keeping the workflows consistent across the repo.
Changes:
- Bump
golangci/golangci-lint-actiontov9in the test workflow. - Update
actions/setup-goGo version from1.22to1.25across test/prepare/release workflows. - Pin
golangci-lintfromv2.0tov2.8.0in the test workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .github/workflows/test.yaml | Updates Go version, bumps golangci-lint action to v9, and pins golangci-lint to v2.8.0 during CI. |
| .github/workflows/prepare.yaml | Updates Go version used for prepare builds to 1.25. |
| .github/workflows/release.yaml | Updates Go version used for release builds to 1.25. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: 1.22 | ||
| go-version: 1.25 |
There was a problem hiding this comment.
This workflow is pinned to Go 1.25 while go.mod declares go 1.24.5. If you want CI to follow the module’s declared toolchain automatically, consider switching to go-version-file: go.mod here as well.
| go-version: 1.25 | |
| go-version-file: go.mod |
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: 1.22 | ||
| go-version: 1.25 |
There was a problem hiding this comment.
This workflow is pinned to Go 1.25 while go.mod declares go 1.24.5. Consider using go-version-file: go.mod to keep workflow Go versions in sync with the module without manual updates.
| go-version: 1.25 | |
| go-version-file: go.mod |
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: 1.22 | ||
| go-version: 1.25 |
There was a problem hiding this comment.
The workflows are now pinned to Go 1.25, but go.mod currently declares go 1.24.5. To reduce ongoing maintenance and avoid version drift, consider using go-version-file: go.mod (or updating go.mod if 1.25 is the new baseline).
| go-version: 1.25 | |
| go-version-file: go.mod |
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: 1.22 | ||
| go-version: 1.25 |
There was a problem hiding this comment.
Consider using a string (e.g. quoting the value) and/or 1.25.x for go-version so the workflow reliably resolves the latest Go 1.25 patch release and avoids any YAML numeric parsing edge cases.
| go-version: 1.25 | |
| go-version: "1.25.x" |
Updates GitHub Actions workflows to use golangci-lint-action v9 and modernizes toolchain versions.
Changes
golangci/golangci-lint-actionfrom v7 to v9All three workflow files (
.github/workflows/{test,prepare,release}.yaml) now consistently use Go 1.25.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.