-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f723a96
commit 77e83f2
Showing
14 changed files
with
820 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ KUSTOMIZE := $(GO) run sigs.k8s.io/kustomize/kustomize/[email protected] | |
SETUP_ENVTEST := $(GO) run sigs.k8s.io/controller-runtime/tools/[email protected] | ||
GOLANGCI_LINT := $(GO) run github.com/golangci/golangci-lint/cmd/[email protected] | ||
YAMLFMT := $(GO) run github.com/google/yamlfmt/cmd/[email protected] | ||
MOQ := $(GO) run github.com/matryer/[email protected] | ||
|
||
# Installed tools | ||
PROTOC_GEN_GO_GRPC := google.golang.org/grpc/cmd/[email protected] | ||
|
@@ -94,6 +95,11 @@ e2e-test: ## Run e2e tests | |
$(SETUP_ENVTEST) use | ||
source <($(SETUP_ENVTEST) use -p env) && $(GO) test -v ./internal/e2e/... -tags=e2e | ||
|
||
mocks: | ||
$(MOQ) -fmt goimpots -rm -out ./internal/proto/workflow/v2/mock.go ./internal/proto/workflow/v2 WorkflowServiceClient WorkflowService_StreamWorkflowsClient | ||
$(MOQ) -fmt goimports -rm -out ./internal/agent/transport/mock.go ./internal/agent/transport WorkflowHandler | ||
$(MOQ) -fmt goimports -rm -out ./internal/agent/mock.go ./internal/agent Transport ContainerRuntime | ||
|
||
.PHONY: generate-proto | ||
generate-proto: buf.gen.yaml buf.lock $(shell git ls-files '**/*.proto') _protoc | ||
$(BUF) mod update | ||
|
@@ -242,4 +248,4 @@ yamllint: $(YAMLLINT_BIN) | |
.PHONY: _protoc ## Install all required tools for use with this Makefile. | ||
_protoc: | ||
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO) | ||
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO_GRPC) | ||
GOBIN=$${PWD}/bin $(GO) install $(PROTOC_GEN_GO_GRPC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.