-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
41 lines (33 loc) · 758 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
version: '3'
env:
GOOS: "{{OS}}"
tasks:
build:
desc: Build Go Binaries
cmds:
- go build -v ./...
test:
desc: Run tests
cmds:
- go test -v ./...
lint:
desc: Run linter
cmds:
- golangci-lint run ./... -v --timeout 5m
scan:
desc: Run security scan
cmds:
- gosec -conf .gosec.config.json "./..."
tools:
desc: Install tools
cmds:
- task: tools:install:golangci-lint
- task: tools:install:gosec
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