-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
57 lines (48 loc) · 1.1 KB
/
Taskfile.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
# https://taskfile.dev
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
tasks:
default:
cmds:
- task -l
silent: true
build:
cmds:
- mkdir -p ./_output/
- go build -o ./_output/git-vwi .
desc: Build the git-vwi executable.
clean:
cmds:
- go clean --testcache
- rm -rf ./_output/
- rm -rf ./dist/
desc: Clean the working directory and clear test cache.
fmt:
cmds:
- go fmt ./...
desc: Runs `gofmt` on all source files in repository.
hash:
cmds:
- git rev-parse --short HEAD
desc: Get the short hash of the latest commit.
silent: true
install:
deps:
- clean
- build
cmds:
- install ./_output/git-vwi ~/bin/git-vwi
desc: Build and install git-flow to your userdir bin (`~/bin/`).
test:
deps:
- clean
- fmt
cmds:
- go test -cover ./...
desc: Runs all Go tests in repository.
release:local:
deps:
- clean
cmds:
- goreleaser release --snapshot --clean
desc: Run a local-only release with goreleaser