Skip to content

Commit

Permalink
Add timeout to CI golangci-lint
Browse files Browse the repository at this point in the history
CI Linting job fails intermittently due to timeout.
Increase the timeout to 3m. The timeout issue and suggested
solution can be found at
golangci/golangci-lint-action#297

Also update the golangci-lint version to 1.42 since
golangci-lint starts to build docker image with go1.17 with
version 1.42.1.

Signed-off-by: Jack Ding <[email protected]>
  • Loading branch information
jzding authored and openshift-cherrypick-robot committed Feb 16, 2022
1 parent a533649 commit 56230f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
skip-pkg-cache: true
skip-build-cache: true
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.41
version: v1.42
args: --timeout 3m0s
unit-tests:
name: Unit Tests
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 56230f5

Please sign in to comment.