-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
42 lines (35 loc) · 944 Bytes
/
Taskfile.yml
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
version: "3"
tasks:
test:
cmds:
- cmd: go test ./...
fmt:
cmds:
- cmd: go fmt ./...
check:
cmds:
- cmd: go mod tidy
- cmd: go vet ./...
- cmd: staticcheck ./...
pre-commit:
aliases:
- pc
cmds:
- task: fmt
- task: check
- task: test
build-test:
cmds:
- cmd: goreleaser release --snapshot --clean
build-dev:
cmds:
- cmd: go build -ldflags "-X github.com/Shackelford-Arden/hctx/build.Version=0.0.1 -X github.com/Shackelford-Arden/hctx/build.Commit=dev -X github.com/Shackelford-Arden/hctx/build.Date=now -X github.com/Shackelford-Arden/hctx/build.BuiltWith=go"
tag-it:
vars:
LATEST_RELEASE:
sh: changie batch auto && changie merge && changie latest
cmds:
- cmd: git tag -a "{{.LATEST_RELEASE}}" -m "{{.LATEST_RELEASE}}"
- cmd: git push --tags
- cmd: git add CHANGELOG.md
- cmd: git push