-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathTaskfile.yml
More file actions
47 lines (40 loc) · 817 Bytes
/
Taskfile.yml
File metadata and controls
47 lines (40 loc) · 817 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
40
41
42
43
44
45
46
47
---
version: "3"
includes:
docker: docker/Taskfile.yml
tasks:
default:
desc: "Run everything"
cmds:
- task: fix
- task: install
- task: test
test:
desc: "Test task-ui"
cmds:
- CGO_ENABLED=1 go test -race -count=1 -cover ./...
- CGO_ENABLED=0 go test -count=1 -cover ./...
run:
desc: "Run task-ui"
cmds:
- task-ui --history-enable
install:
desc: "Install task-ui"
cmds:
- CGO_ENABLED=0 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