generated from nano-interactive/go-library-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
43 lines (42 loc) · 1.49 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
version: '3'
tasks:
fmt:
cmds:
- gofumpt -l -w .
lint:
cmds:
- golangci-lint run --color "always" -v -j 8
sec:
cmds:
- gosec ./...
tidy:
cmds:
- rm -f go.sum
- go mod tidy
update:
cmds:
- go get -u ./... # Updates regular packages
- go get -u -t ./... # Updates Test packages
cli-tools:
cmds:
- go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- go install github.com/securego/gosec/v2/cmd/gosec@latest
- go install github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest
- go install github.com/ramya-rao-a/go-outline@latest
- go install github.com/cweill/gotests/gotests@latest
- go install github.com/fatih/gomodifytags@latest
- go install github.com/daixiang0/gci@latest
- go install github.com/josharian/impl@latest
- go install github.com/haya14busa/goplay/cmd/goplay@latest
- go install github.com/go-delve/delve/cmd/dlv@latest
- go install mvdan.cc/gofumpt@latest
- go install github.com/swaggo/swag/cmd/swag@latest
- go install github.com/cosmtrek/air@latest
- go install google.golang.org/protobuf/cmd/[email protected]
- go install google.golang.org/grpc/cmd/[email protected]
test:
cmds:
- go test -covermode=atomic -race -coverprofile=coverage.txt -timeout 5m -json -v ./... | gotestfmt -showteststatus
env:
GOMAXPROCS: 4