build: speed up linting by 1.5x (#12908)

This commit is contained in:
R.B. Boyer 2022-05-05 12:42:52 -05:00 committed by GitHub
parent 7eda81d00d
commit d4eef44f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -69,3 +69,4 @@ linters-settings:
run: run:
timeout: 10m timeout: 10m
concurrency: 4