-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (43 loc) · 1.02 KB
/
Copy pathTaskfile.yml
File metadata and controls
49 lines (43 loc) · 1.02 KB
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
version: '3'
vars:
GOBIN:
sh: 'echo $(go env GOPATH)/bin'
tasks:
test:
desc: "Testing all submodules"
cmds:
- echo "Testing all submodules..."
- go test -race ./...
sources:
- "**/*.go"
integration-test:
desc: "Testing all submodules with integration tests"
cmds:
- echo "Testing all submodules..."
- go test -race ./... -tags=integration_test
sources:
- "**/*.go"
check:
desc: "Running golint"
cmds:
- golangci-lint run
sources:
- "**/*.go"
security:
desc: "Running security checks"
cmds:
- go mod download
- go mod verify
- govulncheck ./...
- gosec -nosec-require-justification -concurrency=1 ./...
sources:
- "**/*.go"
- "go.mod"
- "go.sum"
check-coverage:
desc: "Checking test coverage"
cmds:
- go test ./... -tags=integration_test -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
- go tool cover -func=cover.out
sources:
- "**/*.go"