mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
let golangci-lint have 5m to check
This commit is contained in:
parent
1724d9fb2e
commit
2dbc66d052
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
2
Justfile
2
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 \
|
||||
|
|
Loading…
Reference in a new issue