-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
38 lines (37 loc) · 916 Bytes
/
Taskfile.yml
File metadata and controls
38 lines (37 loc) · 916 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
version: '3'
tasks:
precommit:
cmds:
- task: gofmt
- task: goimports
- task: lint
- task: test
- task: test-race
gofmt:
desc: Runs gofmt on every file in the project directory
cmds:
- find . -name "*.go" -exec gofmt -w {} \;
goimports:
desc: Runs goimports on every file in the project directory
cmds:
- find . -name "*.go" -exec goimports -w {} \;
lint:
desc: Run the golangci-lint on the repo
cmds:
- golangci-lint run
test:
desc: Run tests for the this component
cmds:
- go test ./...
test-race:
desc: Run race detection tests
cmds:
- go test ./... -race
get-mockery:
desc: Gets the Mockery framework for generating mocks
cmds:
- go get github.com/vektra/mockery/.../
update-mocks:
desc: Updates the mocks that are generated with Mockery
cmds:
- mockery --all "$@"