-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtaskfile.dist.yaml
More file actions
50 lines (43 loc) · 1.37 KB
/
taskfile.dist.yaml
File metadata and controls
50 lines (43 loc) · 1.37 KB
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
# this needs `tasks` and `node` installed
# brew install go-task - https://taskfile.dev
# task setup
version: "3"
tasks:
cover:
cmds:
- go tool cover -html=coverage.out
test:
deps:
cmds:
- rm -f ./coverage.out
- go test -coverpkg=./... -coverprofile=./coverage.out ./...
- mv coverage.out _coverage.out
- cat _coverage.out | grep -v "callout.go/examples/" > coverage.out
- rm _coverage.out
lint:
cmds:
- golangci-lint run
fmt:
cmds:
- gofumpt -l -w .
bench:
cmds:
- go test -run ^\$ -bench=Benchmark -cpu 16
bf:
cmds:
- go test -run ^\$ -bench={{.CLI_ARGS}} -cpu 16
bench_separate:
cmds:
- for: [ Benchmark_EncodeJwts, Benchmark_ParallelEncodeJwts, Benchmark_ParallelConnect, Benchmark_ServiceHandler, Benchmark_ParallelServiceHandler, Benchmark_MicroRequestReply, Benchmark_MicroAsyncRequestReply, Benchmark_RequestReply, Benchmark_ParallelRequestReply, Benchmark_Auth, Benchmark_AuthParallel, Benchmark_AuthMultipleServiceEndpoints, Benchmark_AuthAsyncWorkers, Benchmark_AuthMultipleServices]
vars:
TEST: '{{.ITEM}}'
task: bench_limits
bench_limits:
cmds:
- go test -run ^\$ -bench='{{.TEST}}' -cpu 16
ft:
cmds:
- go test -run ^\$ -testify.m={{.CLI_ARGS}}
auth:
cmds:
- go test -run ^\$ -bench=Benchmark_Auth -cpu 16