-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
50 lines (41 loc) · 783 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
50 lines (41 loc) · 783 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
version: "3"
vars:
PROGRAM: cisco-snmp-pwner
tasks:
deps:
cmds:
- go mod tidy -v
update:
cmds:
- go get -u
- go mod tidy -v
setup:
cmds:
- go install mvdan.cc/gofumpt@latest
build:
aliases: [default]
deps: [deps]
env:
CGO_ENABLED: 0
cmds:
- go fmt ./...
- gofumpt -l -w .
- go vet ./...
- go build -o {{.PROGRAM}}
test:
deps: [deps]
env:
CGO_ENABLED: 1 # required by -race
cmds:
- go test -race -cover ./...
run:
deps: [build]
cmds:
- ./{{.PROGRAM}}
lint:
cmds:
- golangci-lint run ./... --timeout=30m
- go mod tidy
lint-update:
cmds:
- go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest