-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
42 lines (34 loc) · 866 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
include .env
export
.PHONY : upgrade
upgrade :
go get -u .
go mod download
go mod tidy
.PHONY : build
build :
go build
.PHONY : lint
lint :
golint ./...
go vet ./...
gofmt -w -s .
staticcheck ./...
.PHONY: test
test:
go test -cover -vet=all ./...
.PHONY: test-failed
test-failed:
go test -failfast -v -cover ./...
.PHONY: coverage
coverage:
# go gocov convert coverage.out | go gocov-xml > coverage.xml
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
.PHONY: release
release:
goreleaser build --single-target --skip-before --skip-validate --rm-dist
.PHONY: release-deploy
release-deploy:
# goreleaser release --rm-dist --config .goreleaser-actions.yml --parallelism 6 --skip-before --skip-validate
goreleaser release --skip-before --skip-validate --rm-dist --skip-announce --release-notes="" --debug