-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
56 lines (48 loc) · 960 Bytes
/
Taskfile.yml
File metadata and controls
56 lines (48 loc) · 960 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
52
53
54
55
version: '3'
env:
GOPATH:
sh: go env GOPATH
TZ: UTC
PARALLEL: 4
tasks:
install:
deps:
- lint:install
- test:install
lint:install:
status:
- test -f $GOPATH/bin/golangci-lint
cmds:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
lint:
deps:
- lint:install
- mocks
cmds:
- golangci-lint run
test:install:
status:
- go version
- test -f $GOPATH/bin/gotestsum
cmds:
- go install gotest.tools/gotestsum@latest
test:
deps:
- test:install
- mocks
cmds:
- gotestsum --junitfile=unit-tests.xml -- -timeout 30s -race -parallel $PARALLEL -count=1 ./...
mocks:install:
status:
- test -f $GOPATH/bin/mockery
cmds:
- go install github.com/vektra/mockery/v2@v2.42.0
mocks:
deps:
- mocks:install
cmds:
- mockery
ci:
cmds:
- task: lint
- task: test