Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devex: Converge code generation into a single Makefile target #1033

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ default: help
help: ## list makefile targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

gen: ## generate protobuf files
gen: buf sqlc mock ## Run code generation targets (buf, sqlc, mock)

buf: ## Run protobuf code generation
buf generate

clean-gen:
Expand Down Expand Up @@ -143,6 +145,6 @@ dbschema: ## generate database schema with schema spy, monitor file until doc is
cp database/schema/output/diagrams/summary/relationships.real.large.png docs/static/img/mediator/schema.png
cd database/schema && $(COMPOSE) down -v && rm -rf output

mock:
mock: ## generate mocks
mockgen -package mockdb -destination database/mock/store.go github.com/stacklok/mediator/internal/db Store
mockgen -package mockgh -destination internal/providers/github/mock/github.go -source pkg/providers/v1/providers.go GitHub