-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
51 lines (42 loc) · 914 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
51 lines (42 loc) · 914 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
version: '3'
tasks:
default:
desc: List available commands
cmds:
- task --list
install:
desc: Install project packages
cmds:
- 'go mod tidy'
- 'go mod download'
test:
desc: Run tests
cmds:
- 'go test ./...'
test-cover:
desc: Run tests and generate coverage
cmds:
- 'go test -failfast -coverprofile=./coverage.out ./...'
- 'go tool cover -html="./coverage.out"'
lint:
desc: Run linter
cmds:
- 'golangci-lint run'
lint-fix:
desc: Run fix fixable linter errors
cmds:
- 'golangci-lint run --fix'
lint-verify-config:
desc: Verify linter config
cmds:
- 'golangci-lint config verify'
security:
desc: Run security checks
cmds:
- 'go vet ./...'
- 'gosec ./...'
- 'govulncheck ./...'
generate-mocks:
desc: Generate mocks
cmds:
- 'go tool mockery'