chore(linters): Speed up golangci-lint runs for non-Linux OSes (#14639)
This commit is contained in:
parent
4c6df8dbd2
commit
3b35c8137f
|
|
@ -96,10 +96,10 @@ jobs:
|
||||||
- run: 'make check-deps'
|
- run: 'make check-deps'
|
||||||
- run:
|
- run:
|
||||||
name: "Install golangci-lint"
|
name: "Install golangci-lint"
|
||||||
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0
|
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
|
||||||
- run:
|
- run:
|
||||||
name: "Linux"
|
name: "golangci-lint/Linux"
|
||||||
command: GOGC=20 /go/bin/golangci-lint run --verbose
|
command: GOGC=80 GOMEMLIMIT=6656MiB /go/bin/golangci-lint run --verbose
|
||||||
lint-macos:
|
lint-macos:
|
||||||
executor: telegraf-ci
|
executor: telegraf-ci
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -107,10 +107,10 @@ jobs:
|
||||||
- check-changed-files-or-halt
|
- check-changed-files-or-halt
|
||||||
- run:
|
- run:
|
||||||
name: "Install golangci-lint"
|
name: "Install golangci-lint"
|
||||||
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0
|
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
|
||||||
- run:
|
- run:
|
||||||
name: "macOS"
|
name: "golangci-lint/macOS"
|
||||||
command: GOGC=15 GOOS=darwin /go/bin/golangci-lint run --verbose --timeout=30m
|
command: GOGC=80 GOMEMLIMIT=6656MiB GOOS=darwin /go/bin/golangci-lint run --verbose --timeout=30m
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 30m
|
||||||
lint-windows:
|
lint-windows:
|
||||||
executor: telegraf-ci
|
executor: telegraf-ci
|
||||||
|
|
@ -119,10 +119,10 @@ jobs:
|
||||||
- check-changed-files-or-halt
|
- check-changed-files-or-halt
|
||||||
- run:
|
- run:
|
||||||
name: "Install golangci-lint"
|
name: "Install golangci-lint"
|
||||||
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0
|
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
|
||||||
- run:
|
- run:
|
||||||
name: "Windows"
|
name: "golangci-lint/Windows"
|
||||||
command: GOGC=1 GOOS=windows /go/bin/golangci-lint run --verbose --timeout=30m
|
command: GOGC=80 GOMEMLIMIT=6656MiB GOOS=windows /go/bin/golangci-lint run --verbose --timeout=30m
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 30m
|
||||||
test-go-linux:
|
test-go-linux:
|
||||||
executor: telegraf-ci
|
executor: telegraf-ci
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -174,7 +174,7 @@ vet:
|
||||||
.PHONY: lint-install
|
.PHONY: lint-install
|
||||||
lint-install:
|
lint-install:
|
||||||
@echo "Installing golangci-lint"
|
@echo "Installing golangci-lint"
|
||||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
|
||||||
|
|
||||||
@echo "Installing markdownlint"
|
@echo "Installing markdownlint"
|
||||||
npm install -g markdownlint-cli
|
npm install -g markdownlint-cli
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue