From ac8be708a2ccd24607e02462623e8bcfd2130dee Mon Sep 17 00:00:00 2001 From: Adrien Aury <44274230+adrienaury@users.noreply.github.com> Date: Sat, 23 Mar 2024 10:11:33 +0100 Subject: [PATCH] chore: add timeout on golangci-lint --- build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.yml b/build.yml index cf6472a..07eee89 100644 --- a/build.yml +++ b/build.yml @@ -222,10 +222,10 @@ targets: steps: - if: len(linters) == 0 then: - - $: golangci-lint run --enable-all ={replace(join(appendpath("--disable", lintersno), " "), "/", " ")} + - $: golangci-lint run --timeout 10m --enable-all ={replace(join(appendpath("--disable", lintersno), " "), "/", " ")} :: true else: - - $: golangci-lint run ={replace(join(appendpath("--enable", linters), " "), "/", " ")} ={replace(join(appendpath("--disable", lintersno), " "), "/", " ")} + - $: golangci-lint run --timeout 10m ={replace(join(appendpath("--enable", linters), " "), "/", " ")} ={replace(join(appendpath("--disable", lintersno), " "), "/", " ")} :: true test: