-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtusk.yml
40 lines (39 loc) · 816 Bytes
/
tusk.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
---
tasks:
lint:
usage: Run static analysis
options:
fast:
usage: Only run fast linters
type: bool
short: f
rewrite: --fast
run: golangci-lint run ${fast} ./...
test:
usage: Run the tests
options:
all:
usage: Run all tests and linters
short: a
type: bool
fast:
usage: Only run fast tests
type: bool
short: f
fast-flag:
private: true
default:
when: fast
value: -short
verbose:
usage: Run the tests in verbose mode
short: v
type: bool
rewrite: -v
run:
- when: all
task:
name: lint
options:
fast: ${fast}
- command: go test -race ${fast-flag} ${verbose} ./...