We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4642d04 + f0103e0 commit 357a9afCopy full SHA for 357a9af
1 file changed
Makefile
@@ -167,6 +167,11 @@ golangci-lint:
167
test -s $(LOCALBIN)/golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.59.1
168
$(LOCALBIN)/golangci-lint run --fix
169
170
+MAX_PROCS := 5
171
+NUM_PROCS := $(shell expr $(shell nproc --ignore 2) / 2)
172
+PROCS ?= $(shell if [ $(NUM_PROCS) -gt $(MAX_PROCS) ]; then echo $(MAX_PROCS); else echo $(NUM_PROCS); fi)
173
+PROC_CMD = --procs $(PROCS)
174
+
175
.PHONY: test
176
test: manifests generate gowork fmt vet envtest ginkgo ginkgo-run ## Run ginkgo tests with dependencies.
177
0 commit comments