Skip to content

Commit e540703

Browse files
openshift-cherrypick-robotjzding
authored andcommitted
Add timeout to CI golangci-lint (redhat-cne#99)
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]> Co-authored-by: Jack Ding <[email protected]>
1 parent e9fb886 commit e540703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
skip-pkg-cache: true
2020
skip-build-cache: true
2121
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
22-
version: v1.41
22+
version: v1.42
23+
args: --timeout 3m0s
2324
unit-tests:
2425
name: Unit Tests
2526
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)