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

Otter is now available as a cache option in Gubernator V3 #15

Merged
merged 5 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
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
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ $(GOLANGCI_LINT): ## Download Go linter
lint: $(GOLANGCI_LINT) ## Run Go linter
$(GOLANGCI_LINT) run -v -c .golangci.yml ./...

.PHONY: validate
validate: lint test
.PHONY: tidy
tidy:
go mod tidy && git diff --exit-code

.PHONY: validate
validate: tidy lint test bench
@echo
@echo "\033[32mEVERYTHING PASSED!\033[0m"

.PHONY: test
test: ## Run unit tests and measure code coverage
(go test -v -race -p=1 -count=1 -tags holster_test_mode -coverprofile coverage.out ./...; ret=$$?; \
Expand All @@ -28,7 +33,7 @@ test: ## Run unit tests and measure code coverage

.PHONY: bench
bench: ## Run Go benchmarks
go test ./... -bench . -benchtime 5s -timeout 0 -run='^$$' -benchmem
go test ./... -bench . -timeout 6m -run='^$$' -benchmem

.PHONY: docker
docker: ## Build Docker image
Expand All @@ -49,7 +54,6 @@ clean-proto: ## Clean the generated source files from the protobuf sources
@find . -name "*.pb.go" -type f -delete
@find . -name "*.pb.*.go" -type f -delete


.PHONY: proto
proto: ## Build protos
./buf.gen.yaml
Expand Down
Loading
Loading