-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathTaskfile.yml
More file actions
45 lines (38 loc) · 747 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
45 lines (38 loc) · 747 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
# https://taskfile.dev
version: '3'
tasks:
default:
desc: Runs the default tasks
cmds:
- task: init
- task: mod
- task: lint
- task: test
init:
desc: Setup git hooks
cmds:
- cp -f scripts/pre-commit.sh .git/hooks/pre-commit
mod:
desc: Download Go modules
cmds:
- go mod tidy
- cd benchmarks && go mod tidy
lint:
desc: Runs golangci-lint
aliases: [l]
sources:
- ./**/*.go
- .golangci.yml
cmds:
- golangci-lint run --fix
test:
desc: Runs test suite
aliases: [t]
cmds:
- go test -cover ./...
benchmark:
desc: Runs benchmarks
aliases: [b]
dir: benchmarks
cmds:
- go test -bench=. -benchmem .