mirror of https://github.com/status-im/consul.git
build: speed up linting by 1.5x (#12908)
This commit is contained in:
parent
7eda81d00d
commit
d4eef44f49
|
@ -175,7 +175,7 @@ jobs:
|
||||||
default: ""
|
default: ""
|
||||||
docker:
|
docker:
|
||||||
- image: *GOLANG_IMAGE
|
- image: *GOLANG_IMAGE
|
||||||
resource_class: large
|
resource_class: xlarge
|
||||||
environment:
|
environment:
|
||||||
GOTAGS: "" # No tags for OSS but there are for enterprise
|
GOTAGS: "" # No tags for OSS but there are for enterprise
|
||||||
GOARCH: "<<parameters.go-arch>>"
|
GOARCH: "<<parameters.go-arch>>"
|
||||||
|
@ -191,7 +191,7 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: lint
|
name: lint
|
||||||
command: &lintcmd |
|
command: &lintcmd |
|
||||||
golangci-lint run --build-tags="$GOTAGS" -v --concurrency 2
|
golangci-lint run --build-tags="$GOTAGS" -v
|
||||||
- run:
|
- run:
|
||||||
name: lint api
|
name: lint api
|
||||||
working_directory: api
|
working_directory: api
|
||||||
|
|
|
@ -69,3 +69,4 @@ linters-settings:
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 10m
|
timeout: 10m
|
||||||
|
concurrency: 4
|
||||||
|
|
Loading…
Reference in New Issue