-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
73 lines (59 loc) · 1.73 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
tasks:
default: task --list-all
# Continues Development ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
watcher:
desc: watcher
sources:
- ./**/*.go
method: timestamp
cmds:
- task: lints
- task: test-summary
- task: build-race
# Generating assets ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
generate:
desc: Generate Assets
sources:
- ./checkers_*.go
- ./cmd/internal/**/*.go
method: timestamp
cmds:
- task generate-mirror-table
- task generate-tests
generate-mirror-table:
desc: Generates Assets at testdata
cmd: make generate-mirror-table
generate-tests:
desc: Generate Asset MIRROR_FUNCS.md
cmd: make generate-tests
# Run Tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests:
desc: Run Tests
cmd: make tests
ignore_error: true
test-summary:
desc: Run Tests (Summary)
cmd: make tests-summary
ignore_error: true
testcase: go test -v -failfast -count=1 -run "TestAll/{{ .Case }}" ./...
# Build Artifacts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build:
desc: Build binary
cmd: make build
build-race:
desc: Build binary with race flag
cmd: make build-race
install:
desc: Install binary
cmd: make install
# Linter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lints:
cmd: make lints
# Other
cover:
desc: Run Coverage
cmd: make cover
test-release:
desc: Testing Release
cmd: make test-release