-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 614 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 614 Bytes
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
export GO111MODULE=on
default: test
ci: depsdev test
test:
go test ./... -coverprofile=coverage.out -covermode=count
lint:
golangci-lint run ./...
depsdev:
go install github.com/Songmu/ghch/cmd/ghch@latest
go install github.com/Songmu/gocredits/cmd/gocredits@latest
prerelease:
git pull origin main --tag
go mod tidy
ghch -w -N ${VER}
gocredits -w .
git add CHANGELOG.md CREDITS go.mod go.sum
git commit -m'Bump up version number'
git tag ${VER}
prerelease_for_tagpr: depsdev
gocredits . -w
git add CHANGELOG.md CREDITS go.mod go.sum
release:
git push origin main --tag
.PHONY: default test