Skip to content

Commit

Permalink
chore(build): remove redundant test build target from Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
flc1125 committed Jan 5, 2025
1 parent b6be828 commit c27e4c9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,13 @@ tools: $(GOLANGCI_LINT) $(GORELEASE) $(GOCOVMERGE) $(MULTIMOD)

.PHONY: build

build: $(ROOT_GO_MOD_DIRS:%=build/%) $(ROOT_GO_MOD_DIRS:%=build-tests/%)
build: $(ROOT_GO_MOD_DIRS:%=build/%)
build/%: DIR=$*
build/%:
@echo "$(GO) build $(DIR)/..." \
&& cd $(DIR) \
&& $(GO) build ./...

build-tests/%: DIR=$*
build-tests/%:
@echo "$(GO) build tests $(DIR)/..." \
&& cd $(DIR) \
&& $(GO) list ./... \
| grep -v third_party \
| xargs $(GO) test -vet=off -run xxxxxMatchNothingxxxxx >/dev/null

# Tests

TEST_TARGETS := test-default test-short test-verbose test-race test-concurrent-safe
Expand Down

0 comments on commit c27e4c9

Please sign in to comment.