-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Taskfile.yml
53 lines (46 loc) · 874 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
43
44
45
46
47
48
49
50
51
52
53
---
version: "3"
includes:
docker: docker/Taskfile.yml
tasks:
build:
desc: "Build task-ui"
deps:
- fix
cmds:
- CGO_ENABLED=0 go build .
test:
desc: "Test task-ui"
deps:
- fix
cmds:
- CGO_ENABLED=1 go test -race -count=1 -cover ./...
- CGO_ENABLED=0 go test -count=1 -cover ./...
run:
desc: "Run task-ui"
deps:
- build
cmds:
- ./task-ui --history-enable
install:
desc: "Install task-ui locally"
deps:
- fix
cmds:
- go install .
fix:
desc: "Fix code"
deps:
- deps:goimports
cmds:
- goimports -w .
- go fmt ./...
- go vet .
- go mod tidy
- ./README.md.sh > README.md
deps:goimports:
internal: true
status:
- type goimports
cmds:
- go install golang.org/x/tools/cmd/goimports@latest