-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
38 lines (33 loc) · 1.44 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
# ┌───────────────────────────────────────────────────────────────────┐
# │ │
# │ IMPORTANT NOTE │
# │ │
# │ This file is synced with https://github.com/atomicgo/template │
# │ │
# │ Please apply all changes to the template repository │
# │ │
# └───────────────────────────────────────────────────────────────────┘
version: "3"
tasks:
test:
desc: Run all tests
cmds:
- go test ./...
benchmark:
desc: Run all benchmarks
aliases: [bench]
cmds:
- go test -bench=. ./...
tdd:
desc: Test Driven Development - Watch tests
watch: true
sources:
- "**/*.go"
cmds:
- go test ./...
lint:
desc: Run all linters
cmds:
- go mod tidy
- wsl --allow-cuddle-declarations --force-err-cuddling --force-case-trailing-whitespace 3 --fix ./...
- golangci-lint run