diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index f3ec7827f2..77f126a1d4 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -19,7 +19,7 @@ jobs: enable-cache: 'true' - name: Run testing - run: devbox run -- 'go test -race -v ./... -coverprofile=coverage.out' + run: devbox run -- 'GO_TEST_FLAGS="-coverprofile=coverage.out" make unit-test' - name: Test tools run: devbox run -- 'make test-tools' diff --git a/Makefile b/Makefile index e8c30de75c..d9ec18207a 100644 --- a/Makefile +++ b/Makefile @@ -193,8 +193,8 @@ check-licenses: ## Check licenses are compliant with our restrictions @echo "Licenses check: PASS" .PHONY: unit-test -unit-test: - go test -race -cover $(GO_UNIT_TEST_FOLDERS) +unit-test: manifests + go test -race -cover $(GO_UNIT_TEST_FOLDERS) $(GO_TEST_FLAGS) ## Run integration tests. Sample with labels: `make test/int GINKGO_FILTER_LABEL=AtlasProject` test/int: envtest