Skip to content

Commit

Permalink
add: docker target and generate target
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Dec 26, 2023
1 parent 6c5d8c4 commit aa26d6a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build test clean changelog tools help
.PHONY: build test clean changelog tools help docker generate

S3HUB = s3hub
VERSION = $(shell git describe --tags --abbrev=0)
Expand All @@ -20,7 +20,7 @@ build: ## Build binary
clean: ## Clean project
-rm -rf $(S3HUB) cover.out cover.html

test: ## Start test
test: ## Start unit test
env GOOS=$(GOOS) $(GO_TEST) -cover $(GO_PKGROOT) -coverprofile=cover.out
$(GO_TOOL) cover -html=cover.out -o cover.html

Expand All @@ -32,6 +32,12 @@ tools: ## Install dependency tools
$(GO_INSTALL) github.com/nao1215/hottest@latest
$(GO_INSTALL) github.com/google/wire/cmd/wire@latest

generate: ## Generate code from templates
$(GO) generate ./...

docker: ## Start docker (localstack)
docker compose up -d

.DEFAULT_GOAL := help
help:
@grep -E '^[0-9a-zA-Z_-]+[[:blank:]]*:.*?## .*$$' $(MAKEFILE_LIST) | sort \
Expand Down

0 comments on commit aa26d6a

Please sign in to comment.