-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.dist.yml
53 lines (45 loc) · 1.03 KB
/
Taskfile.dist.yml
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
version: '3'
tasks:
generate:
desc: create generated code
cmds:
- go generate ./...
- task: mocks
mocks:
internal: true
dir: internal
cmds:
- mockery
smokes:
desc: run smoke tests against dummyjson.com
cmds:
- go build
- defer: rm poke
- ./poke --debug hack/dummyjson_seq.yaml
protos:
desc: generate protobuf bits
dir: functionaltests/echoserver
cmds:
- protoc -I./protos/ --go_out=protobuf/ --go_opt=paths=source_relative --go-grpc_out=protobuf/ --go-grpc_opt=paths=source_relative protos/*.proto
compose:
desc: start functional test resources
dir: functionaltests
cmds:
- docker-compose up -d --wait
functional-test:
desc: execute functional tests using docker-compose
env:
MSG_BODY: foo
cmds:
- task: compose
- go build
- ./poke ./functionaltests/grpc.yaml
unit-tests:
desc: execute unit tests
cmds:
- gotestsum
test:
desc: execute tests
cmds:
- task: unit-tests
- task: functional-test