-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
53 lines (43 loc) · 922 Bytes
/
Taskfile.yml
File metadata and controls
53 lines (43 loc) · 922 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
48
49
50
51
52
53
version: "3"
tasks:
tidy:
desc: go mod tidy
cmds:
- go mod tidy
build:
desc: go build ./...
cmds:
- go build ./...
vet:
desc: go vet ./...
cmds:
- go vet ./...
lint:
desc: golangci-lint run
cmds:
- golangci-lint run ./...
test:
desc: short unit tests
cmds:
- go test -short ./...
test-race:
desc: unit tests with race detector
cmds:
- go test -race -short ./...
cover:
desc: coverage profile
cmds:
- go test -race -covermode=atomic -coverprofile=coverage.out ./...
- go tool cover -func=coverage.out | tail -n 1
bench:
desc: benchmarks
cmds:
- go test -run=^$ -bench=. -benchmem ./...
vuln:
desc: govulncheck
cmds:
- govulncheck ./...
e2e:
desc: integration tests (requires BMv2)
cmds:
- go test -tags=integration -count=1 ./test/integration/...