Skip to content

Commit ead7e14

Browse files
committed
use make target for unit testing including dependencies
1 parent c6303ee commit ead7e14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
enable-cache: 'true'
2020

2121
- name: Run testing
22-
run: devbox run -- 'go test -race -v ./... -coverprofile=coverage.out'
22+
run: devbox run -- 'GO_TEST_FLAGS="-coverprofile=coverage.out" make unit-test'
2323

2424
- name: Test tools
2525
run: devbox run -- 'make test-tools'

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ check-licenses: ## Check licenses are compliant with our restrictions
193193
@echo "Licenses check: PASS"
194194

195195
.PHONY: unit-test
196-
unit-test:
197-
go test -race -cover $(GO_UNIT_TEST_FOLDERS)
196+
unit-test: manifests
197+
go test -race -cover $(GO_UNIT_TEST_FOLDERS) $(GO_TEST_FLAGS)
198198

199199
## Run integration tests. Sample with labels: `make test/int GINKGO_FILTER_LABEL=AtlasProject`
200200
test/int: envtest

0 commit comments

Comments
 (0)