diff --git a/.woodpecker.yml b/.woodpecker.yml index 76d9f3a..d6f3319 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,7 +11,7 @@ pipeline: - go version - go install mvdan.cc/gofumpt@latest - "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }" - - golangci-lint run + - golangci-lint run --timeout 5m test: image: golang diff --git a/Justfile b/Justfile index fac93d1..8d31fa9 100644 --- a/Justfile +++ b/Justfile @@ -13,7 +13,7 @@ build: lint: tool-golangci tool-gofumpt [ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }; \ - golangci-lint run + golangci-lint run --timeout 5m tool-golangci: @hash golangci-lint> /dev/null 2>&1; if [ $? -ne 0 ]; then \