Skip to content

Commit

Permalink
Increase timeout for golangci-lint (#609)
Browse files Browse the repository at this point in the history
Reference: https://golangci-lint.run/usage/configuration/#run-configuration
Reference: https://github.com/hashicorp/terraform-plugin-framework/actions/runs/3856256179/jobs/6572249688

Updates the configuration timeout value to prevent CI false positives. Occassionally the GitHub Actions runners will take just over the 1 minute default timeout to run `golangci-lint` in this codebase, while the tool is generally fast on modern local hardware (suggesting it might be resource contention on the runners, not an inherent tooling issue).
  • Loading branch information
bflad authored Jan 9, 2023
1 parent 301de86 commit ac1a8c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ linters:
- unparam
- unused
- vet

run:
# Prevent false positive timeouts in CI
timeout: 5m

0 comments on commit ac1a8c5

Please sign in to comment.