github/workflows: Use Go version in go.mod rather than static version#147
github/workflows: Use Go version in go.mod rather than static version#147
Conversation
Walkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10–15 minutes Possibly related PRs
Pre-merge checks (2 passed, 1 warning)❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
adapters/memrolescheduler/memrolescheduler.go (1)
31-36: Capture and unlock the exact mutex; avoid map lookups under lockUnlocking via
r.roles[role]risks targeting a different mutex if the map entry ever changes and needlessly holdsr.mu. Capturemuin the goroutine andUnlock()it directly.- go func(role string) { - <-ctx.Done() - r.mu.Lock() - r.roles[role].Unlock() - r.mu.Unlock() - }(role) + go func(m *sync.Mutex) { + <-ctx.Done() + m.Unlock() + }(mu).github/workflows/tests.yml (1)
52-52: Add a trailing newline to satisfy lintersYamllint flags “no new line at end of file”.
(cd "$dir" && go vet ./...) - done + done +
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/sonar.yaml(1 hunks).github/workflows/tests.yml(3 hunks)adapters/memrolescheduler/memrolescheduler.go(2 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/tests.yml
[error] 52-52: no new line character at the end of file
(new-line-at-end-of-file)
🔇 Additional comments (4)
adapters/memrolescheduler/memrolescheduler.go (1)
45-45: No behavioural change hereClosing brace only.
.github/workflows/tests.yml (2)
14-14: LGTM: test against Go 1.24 and latest stableGood balance between a fixed baseline and tracking latest.
38-39: LGTM: derive Go version from go.modUsing
go-version-file: 'go.mod'keeps a single source of truth for adapters/examples..github/workflows/sonar.yaml (1)
22-22: LGTM: use go-version-file for Sonar job as wellThis aligns CI with the module’s declared toolchain.



Update GitHub Actions workflow to use standardized Go versions ['1.24', '1'] in matrix and '1.24' for standalone usage instead of ['1.23', '1'] and '1.23'.
This change:
Summary by CodeRabbit
New Features
Chores
Refactor
Tests