Browse Source

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

pull/12954/head
R.B. Boyer 3 years ago committed by GitHub
parent
commit
d4eef44f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .circleci/config.yml
  2. 1
      .golangci.yml

4
.circleci/config.yml

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

1
.golangci.yml

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

Loading…
Cancel
Save