forked from TykTechnologies/tyk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
50 lines (42 loc) · 986 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
---
version: "3"
vars:
testArgs: -v
coverage: log.cov
tasks:
test:
desc: "Run tests"
cmds:
- task: fmt
- go test {{.testArgs}} -count=1 -cover -coverprofile={{.coverage}} -coverpkg=./... ./...
bench:
desc: "Run benchmarks"
cmds:
- task: fmt
- go test {{.testArgs}} -count=1 -tags integration -bench=. -benchtime=10s -benchmem ./...
fmt:
internal: true
desc: "Invoke fmt"
cmds:
- goimports -w .
- go fmt ./...
# lint target is run from CI
lint:
desc: "Ensure linter pass"
cmds:
- schema-gen extract -o - | schema-gen lint -i -
cover:
desc: "Show source coverage"
aliases: [coverage, cov]
cmds:
- go tool cover -func={{.coverage}}
uncover:
desc: "Show uncovered source"
cmds:
- uncover {{.coverage}}
install:uncover:
desc: "Install uncover"
env:
GOBIN: /usr/local/bin
cmds:
- go install github.com/gregoryv/uncover/...@latest