-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
43 lines (33 loc) · 849 Bytes
/
Taskfile.yaml
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'
vars:
GOOS: "{{OS}}"
tasks:
test:
cmds:
- go test ./...
build:linux:
cmds:
- go env -w GOOS=linux GOARCH=amd64
- go build -o bin/hotpot cmd/cli/main.go
build:windows:
cmds:
- go env -w GOOS=windows GOARCH=amd64
- go build -o bin/hotpot.exe cmd/cli/main.go
build:darwin:
cmds:
- go env -w GOOS=darwin GOARCH=arm64
- go build -o bin/hotpot cmd/cli/main.go
lint:
cmds:
- golangci-lint run ./... -v --timeout 5m
scan:
cmds:
- gosec -conf .gosec.config.json "./..."
tools:install:golangci-lint:
desc: Install golangci-lint
cmds:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
tools:install:gosec:
desc: Install gosec
cmds:
- go install github.com/securego/gosec/v2/cmd/gosec@latest