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 f4c4c0e9ae
commit 503be2a5e6
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: ""
docker:
- image: *GOLANG_IMAGE
resource_class: large
resource_class: xlarge
environment:
GOTAGS: "" # No tags for OSS but there are for enterprise
GOARCH: "<<parameters.go-arch>>"
@ -191,7 +191,7 @@ jobs:
- run:
name: lint
command: &lintcmd |
golangci-lint run --build-tags="$GOTAGS" -v --concurrency 2
golangci-lint run --build-tags="$GOTAGS" -v
- run:
name: lint api
working_directory: api

View File

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