-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
52 lines (42 loc) · 898 Bytes
/
Taskfile.yml
File metadata and controls
52 lines (42 loc) · 898 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
46
47
48
49
50
51
# https://taskfile.dev
version: '3'
tasks:
build:
desc: Build the project binary
cmds:
- task vet
- go build
run:
desc: Run the project
cmds:
- go run .
test:
desc: Run the unit tests
cmds:
- go test ./...
nag:
desc: Lint, format and vet the project
cmds:
- task: fmt
- task: lint
- task: vet
- task: vuln-check
lint:
desc: Lint the project with golangci-lint
cmds:
- golangci-lint run
fmt:
desc: Format the project with gofmt
cmds:
- golangci-lint fmt ./...
vet:
dsec: Check for incorrect code
cmds:
- go vet ./...
vuln-check:
desc: Run vulnerability check against app
cmd: "{{.GO_PATH}}/bin/govulncheck {{.OPTIONS}} {{.CLI_ARGS}} {{.FILES}}"
vars:
FILES: '{{default "./..." .FILES}}'
GO_PATH:
sh: "go env GOPATH"