feat: add configurable golangci-lint-version input#39
Draft
Conversation
Add golangci-lint-version as input parameter to both go-checks action and reusables-go workflow. Use go install mode as requested. Update reusables-go.yml
Update README.md and reusables-go.yml to reflect that golangci-lint-version defaults to 'latest' instead of a specific version number.
17dfca2 to
36b4ef2
Compare
🛡️ PR Quality Check Summary✅ PR Title: Passed (Length: 50/75, Format: OK). 🎉 All checks passed! |
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.
目的
讓 Go 品質檢查工作流程支援可配置的 golangci-lint 版本,並修正安裝模式為
goinstall,解決先前使用version: latest導致 CI 不穩定的問題 ( 無法檢查 golang > 1.24 以上版本 )。方法/實作說明
在
go-checkscomposite action 和reusables-goworkflow 中新增golangci-lint-version輸入參數,並將 golangci-lint-action 的安裝模式設定為goinstall。.github/actions/go-checks/action.yml:新增golangci-lint-version輸入參數(預設latest),並將install-mode設為goinstall.github/workflows/reusables-go.yml:新增golangci-lint-version輸入參數並傳遞給go-checksaction關聯 Issue
無
附註
golangci-lint-version參數說明