-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
44 lines (37 loc) · 817 Bytes
/
Taskfile.yaml
File metadata and controls
44 lines (37 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
version: '3'
tasks:
default:
desc: Run tests and linting
deps:
- lint-fix
- test
generate:
desc: Generate code
cmds:
- go generate ./...
check:
deps:
- lint
- test
test:
desc: Run tests
cmds:
- go test -race ./... -test.timeout=3s -count=1
cover:
desc: Run tests with cover report
cmds:
- mkdir -p coverage/
- go test -coverpkg=./... -coverprofile=coverage/cover.out ./... -test.timeout=2s
- go tool cover -html coverage/cover.out -o coverage/cover.html
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run
lint-fix:
desc: Run golangci-lint with auto-fix
cmds:
- golangci-lint run --fix
doc:
desc: Run pkgsite
cmds:
- go tool golang.org/x/pkgsite/cmd/pkgsite