ci: limit GOMAXPROCS to half the number of vCPUs

This commit is contained in:
James Houlahan
2020-12-11 11:27:26 +01:00
parent eb1176eba6
commit 0a4fb4594a
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ lint:
only:
- branches
script:
- make lint
- env GOMAXPROCS=$(( ${CI_TAG_CPU} / 2 )) make lint
tags:
- medium

View File

@ -231,6 +231,7 @@ lint-changelog:
lint-golang:
which golangci-lint || $(MAKE) install-linter
$(info linting with GOMAXPROCS=${GOMAXPROCS})
golangci-lint run ./...
updates: install-go-mod-outdated