-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 876 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (32 loc) · 876 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
34
35
36
37
38
39
.PHONY: all clean default run build update up check pc test
default: check
check: pc test
pc:
prek run -a
test:
TESTCONTAINERS=1 go test -race -covermode=atomic -coverprofile=coverage.txt ./...
@go tool cover -func=coverage.txt | tail -1
update: up up-ci
up:
go get -u -t ./...
go mod tidy
go mod verify
up-ci:
prek auto-update --freeze
pinact run --update
pindock run --update Dockerfile
build:
go build -ldflags=-s -o ./dist/ ./...
goreleaser:
goreleaser --clean --snapshot --skip=publish
bumped:
git cliff --bumped-version
# make release TAG=$(git cliff --bumped-version)-alpha.0
release: check
git cliff -o CHANGELOG.md --tag $(TAG)
prek run --files CHANGELOG.md || prek run --files CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore(release): prepare for $(TAG)"
git push
git tag -a $(TAG) -m "chore(release): $(TAG)"
git push origin $(TAG)