-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: test against go1.22 #1195
CI: test against go1.22 #1195
Conversation
This PR modifies CI to test against Go versions 1.21 and 1.22. To avoid forcing users to upgrade to 1.21, I kept `go.mod` version at `1.20.` Some tests had to be updated to pass in 1.22. I can remove `stack_120_test.go` if there's a good argument for it, but my thoughts are that we should have a complete & passing test suite for every version >= `go.mod`'s version.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1195 +/- ##
==========================================
- Coverage 98.73% 98.49% -0.25%
==========================================
Files 31 34 +3
Lines 2851 2858 +7
==========================================
Hits 2815 2815
- Misses 29 36 +7
Partials 7 7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -19,7 +19,7 @@ jobs: | |||
strategy: | |||
matrix: | |||
os: ["ubuntu-latest", "windows-latest"] | |||
go: ["1.20.x", "1.21.x"] | |||
go: ["1.21.x", "1.22.x"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recently learned a trick via uber-go/tally#258 (comment)
This PR modifies CI to test against Go versions 1.21 and 1.22. To avoid forcing users to upgrade to 1.21, I kept
go.mod
version at1.20.
Some tests had to be updated to pass in 1.22.
I can remove
stack_120_test.go
if there's a good argument for it, but my thoughts are that we should have a complete & passing test suite for every version >=go.mod
's version.