-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yml
46 lines (40 loc) · 946 Bytes
/
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
version: '3'
tasks:
default:
cmds:
- task: errs
- task: zapobject
- task: test
- task: nancy
test:
desc: Test and lint.
cmds:
- go test -shuffle on ./...
- go test -shuffle on ./zapobject/...
- govulncheck ./...
- govulncheck ./zapobject/...
- docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.51.1 golangci-lint run --enable gosec --timeout 3m0s ./...
sources:
- ./go.mod
- '**/*.go'
nancy:
desc: Check vulnerability of external packages with Nancy.
cmds:
- depm list -j | nancy sleuth -n
sources:
- ./go.mod
- '**/*.go'
clean:
desc: Initialize module and build cache.
cmds:
- go clean -cache
- go clean -modcache
errs:
cmds:
- rm -f ./go.sum
- go mod tidy -v -go=1.20
zapobject:
dir: zapobject
cmds:
- rm -f ./go.sum
- go mod tidy -v -go=1.20