Makefile: build tests before running linter too
So we catch test errors before the linter complains with a non
user-friendly error.
@@ -58,7 +58,7 @@ build-slim:
test: run-unit-tests
.PHONY: lint
-lint: build-slim
+lint: build-slim build-test
golangci-lint run --enable-all --disable=godox,gochecknoglobals --max-same-issues=0 --max-issues-per-linter=0 --build-tags aws,packet,e2e,disruptive-e2e --new-from-rev=$$(git merge-base $$(cat .git/resource/base_sha 2>/dev/null || echo "master") HEAD) --modules-download-mode=$(MOD) --timeout=5m --exclude-use-default=false ./...
GOFORMAT_FILES := $(shell find . -name '*.go' | grep -v '^./vendor')
