chore: pin GH commits and switch to golangci-lint (#4444)

* chore: pin GH commits

* switch to golangci-lint-action

* fix lint issues
This commit is contained in:
David Zhao
2026-04-11 13:04:22 -07:00
committed by GitHub
parent 2974ba879f
commit 4b3856125c
37 changed files with 127 additions and 108 deletions
+8
View File
@@ -177,6 +177,14 @@ func TestAll() error {
return mageutil.Run(context.Background(), "go test ./... -count=1 -timeout=4m -v")
}
// runs golangci-lint
func Lint() error {
if _, err := exec.LookPath("golangci-lint"); err != nil {
return errors.New("golangci-lint is not installed, install instructions: https://golangci-lint.run/docs/welcome/install/")
}
return mageutil.Run(context.Background(), "golangci-lint run ./...")
}
// cleans up builds
func Clean() {
fmt.Println("cleaning...")