-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtaskfile.yml
48 lines (45 loc) · 1.55 KB
/
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
# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
tasks:
lint:
aliases: [linter, linters, l]
desc: Run linters on the project code
summary: |
Run linters on the project code and generate a report with the results.
cmds:
- go install github.com/Antonboom/[email protected]
- golangci-lint run
test:
aliases: [tests, t]
desc: Run tests with coverage
summary: Run tests with coverage and generate a coverage report in coverage.out
cmds:
- go test -coverprofile=coverage.out ./...
test-doc:
aliases: [tdoc, tdocu, tdocum]
desc: Run tests to validate all documentation examples
summary: |
Run tests to validate all documentation examples and generate a report
with the results.
cmds:
- go run ./tools/docvalidator
bench:
aliases: [benchmarks, benchs, b]
desc: Run benchmarks between sprig and current sprout implementation
summary: |
Run benchmarks between sprig and current sprout implementation and
generate a benchmark report, a cpu profile and a memory profile.
dir: ./benchmarks
cmds:
- go test -run=^$$ -bench ^Benchmark -benchmem -benchtime=250x -cpuprofile cpu.out -memprofile mem.out
backwards:
aliases: [back, bwd, compare]
desc: Run the backwards compatibility tests between sprig and sprout
summary: |
Run the backwards compatibility tests between sprig and sprout and
generate a report cpu and memory profiles.
dir: ./benchmarks
cmds:
- go test -cpuprofile cpu.out -memprofile mem.out