-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
45 lines (31 loc) · 931 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
TEST ?= ./...
LOGLEVEL ?= info
default: build
build:
go build ./cmd/dewy
server:
go run cmd/dewy/main.go server --registry ghr://linyows/dewy-testapp -p 8000 -l $(LOGLEVEL) -- $(HOME)/.go/src/github.com/linyows/dewy/current/dewy-testapp
assets:
go run cmd/dewy/main.go assets --registry ghr://linyows/dewy-testapp -l $(LOGLEVEL)
protobuf:
cd registry && buf generate
deps:
go install github.com/goreleaser/goreleaser@latest
go install github.com/bufbuild/buf/cmd/buf@latest
test:
go test $(TEST) $(TESTARGS)
go test -race $(TEST) $(TESTARGS) -coverprofile=coverage.out -covermode=atomic
integration:
go test -integration $(TEST) $(TESTARGS)
lint:
golangci-lint run ./...
ci: deps test lint
git diff go.mod
xbuild:
goreleaser --rm-dist --snapshot --skip-validate
dist:
@test -z $(GITHUB_TOKEN) || goreleaser --rm-dist --skip-validate
clean:
git checkout go.*
git clean -f
.PHONY: default dist test deps