Skip to content

Commit

Permalink
build(make): test-unit target runs in same environment as build
Browse files Browse the repository at this point in the history
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
  • Loading branch information
alfrunes committed Sep 5, 2024
1 parent ce241cc commit 141ea40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/services/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ generate:

.PHONY: test-unit
test-unit:
go test $(BUILDFLAGS) $(TESTFLAGS) ./...
env CGO_ENABLED=$(CGO_ENABLED) \
GOOS=$(GOOS) \
GOARCH=$(GOARCH) \
go test $(BUILDFLAGS) $(TESTFLAGS) ./...

.PHONY: test
test: test-unit test-acceptance
Expand Down

0 comments on commit 141ea40

Please sign in to comment.