ci: test on Go 1.24 through 1.26 - #240
Merged
Merged
Conversation
The matrix still includes Go 1.19 and 1.20, which are below the `go 1.21` requirement in go.mod and no longer compile the driver: github.com/mattn/go-sqlite3 v1.14.48 (bumped in go-gorm#239) uses unsafe.StringData, added in Go 1.20, so the 1.19 job fails on master and on every PR. Test the three most recent releases instead.
This was referenced Jul 31, 2026
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions CI workflow to stop testing unsupported Go versions and instead run tests against newer Go releases, aligning CI with the project’s current Go toolchain expectations.
Changes:
- Update the CI Go version matrix from Go 1.19–1.21 to Go 1.24–1.26.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
CI is currently red on master and on every PR: the matrix still includes Go 1.19 and 1.20, which are below the
go 1.21requirement ingo.modand no longer compile the driver —github.com/mattn/go-sqlite3 v1.14.48(bumped in #239) usesunsafe.StringData, which was added in Go 1.20:Example failing runs: master, #236.
What
Update the matrix to the three most recent Go releases: 1.24, 1.25, 1.26.
🤖 Generated with Claude Code