-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
35 lines (30 loc) · 956 Bytes
/
Taskfile.yml
File metadata and controls
35 lines (30 loc) · 956 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
version: '3'
tasks:
lint:
desc: Running linter checks
cmds:
- go tool golangci-lint run
test:
desc: Running UNIT tests
cmds:
- go clean -testcache
- go test -cover -race -short ./... | { grep -v 'no test files'; true; }
cover-html:
desc: Running test coverage with HTML output
cmds:
- go clean -testcache
- go test -cover -coverprofile=coverage.out -race -short ./... | grep -v 'no test files'
- go tool cover -html=coverage.out
cover:
desc: Running test coverage
cmds:
- go clean -testcache
- go test -cover -coverprofile=coverage.out -race -short ./... | grep -v 'no test files'
- go tool cover -func=coverage.out
readme:
desc: Generate README.md from Go doc
cmds:
- |
go tool goreadme --badge-codecov --badge-godoc --badge-golangci \
--badge-goreportcard --credit=false \
github.com/yarcode/workerpool > README.md