Skip to content

Commit

Permalink
Update golangci configuration and timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonWAffel committed Jul 31, 2024
1 parent b97701e commit cc8e212
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
golint:
runs-on: windows-2022
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64
with:
args: --timeout=10m
version: v1.55

test:
Expand Down
7 changes: 3 additions & 4 deletions .golangci.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
"gofmt"
]
},
"run": {
"skip-files": [
"issues": {
"exclude-files": [
"/zz_generated_",
"docs",
"tests",
"scripts",
"charts",
"package"
],
"deadline": "5m"
]
}
}
2 changes: 1 addition & 1 deletion magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func Validate() error {
envs := map[string]string{"GOOS": "windows", "ARCH": "amd64", "CGO_ENABLED": "0", "MAGEFILE_VERBOSE": "1"}

log.Printf("[Validate] Running: golangci-lint \n")
if err := sh.RunWithV(envs, "golangci-lint", "run"); err != nil {
if err := sh.RunWithV(envs, "golangci-lint", "run", "--timeout", "10m"); err != nil {
return err
}

Expand Down

0 comments on commit cc8e212

Please sign in to comment.