Skip to content

Commit 9175a18

Browse files
chore: fixing makefile for new dev workflow (#4097)
* change test command Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> * fix: rework build command Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org> --------- Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
1 parent 18133fb commit 9175a18

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ build-wasi: create-out-dir ## Build the wasi evaluation library in out/bin/
5050
cd wasm && $(TINYGOCMD) build -o ../out/bin/gofeatureflag-evaluation.wasi -target wasi -opt=2 -opt=s --no-debug -scheduler=none && cd ..
5151

5252
build-modules: ## Run build command to build all modules in the workspace
53-
@echo "Building all modules in go.work..."
54-
$(foreach module, $(ALL_GO_MOD_DIRS), \
55-
echo "→ Building $(module)"; \
56-
cd $(module) && CGO_ENABLED=0 GO111MODULE=on $(GOWORK_ENV) $(GOCMD) build $(MODFLAG) ./... && cd - > /dev/null;)
53+
@echo "Building all modules in the workspace..."
54+
@$(foreach module, $(ALL_GO_MOD_DIRS), (echo "→ Building $(module)"; CGO_ENABLED=0 GO111MODULE=on $(GOWORK_ENV) $(GOCMD) build $(MODFLAG) ./...);)
5755

5856

5957
build-doc: ## Build the documentation
@@ -118,7 +116,7 @@ bump-helm-chart-version: ## Bump Helm chart version (usage: make bump-helm-chart
118116

119117
## Test:
120118
test: ## Run the tests of the project
121-
go list -f '{{.Dir}}/...' -m | xargs -I{} $(GOWORK_ENV) $(GOCMD) test -v -race -tags=docker {}
119+
@$(foreach module, $(ALL_GO_MOD_DIRS), (echo "→ Testing $(module)"; cd $(module) && $(GOWORK_ENV) $(GOCMD) test -v -race -tags=docker ./...);)
122120

123121
provider-tests: ## Run the integration tests for the Open Feature Providers
124122
./openfeature/provider_tests/integration_tests.sh

0 commit comments

Comments
 (0)