Skip to content

Commit

Permalink
Merge pull request #15 from gubernator-io/thrawn/otter-v3
Browse files Browse the repository at this point in the history
Otter is now available as a cache option in Gubernator V3
  • Loading branch information
thrawn01 authored May 20, 2024
2 parents 561b064 + 6abafb9 commit 097220f
Show file tree
Hide file tree
Showing 30 changed files with 1,758 additions and 1,528 deletions.
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

0 comments on commit 097220f

Please sign in to comment.