Skip to content

Commit aa26d6a

Browse files
committed
add: docker target and generate target
1 parent 6c5d8c4 commit aa26d6a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build test clean changelog tools help
1+
.PHONY: build test clean changelog tools help docker generate
22

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

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

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

35+
generate: ## Generate code from templates
36+
$(GO) generate ./...
37+
38+
docker: ## Start docker (localstack)
39+
docker compose up -d
40+
3541
.DEFAULT_GOAL := help
3642
help:
3743
@grep -E '^[0-9a-zA-Z_-]+[[:blank:]]*:.*?## .*$$' $(MAKEFILE_LIST) | sort \

0 commit comments

Comments
 (0)