-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
51 lines (42 loc) · 935 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
44
45
46
47
48
49
50
51
version: "3"
env:
CGO_ENABLED: 0
tasks:
default:
desc: Run tests and linter
cmds:
- task: test
- task: lint
build:
desc: Build the binary
cmds:
- go build -buildvcs=true -o bin/kubectl-mapr_ticket ./
sources:
- ./**/*.go
generates:
- bin/kubectl-mapr_ticket
test:
desc: Run tests
cmds:
- gotestsum -- -coverprofile=coverage.txt -covermode=atomic ./...
lint:
desc: Run linter
cmds:
- golangci-lint run
lint:fix:
desc: Run linter with auto-fix enabled
cmds:
- golangci-lint run --fix
pre-commit:
desc: Run pre-commit checks
cmds:
- pre-commit run --all-files
pre-commit:fix:
desc: Run pre-commit checks and git add fixed files
cmds:
- task: pre-commit
- git add --update .
install:gotestsum:
desc: Install gotestsum
cmds:
- go install gotest.tools/gotestsum@latest