-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yaml
94 lines (92 loc) · 2.07 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3"
includes:
infra:
taskfile: ./infra/taskfile.yaml
dir: ./infra
gw:
taskfile: ./gw/taskfile.yaml
dir: ./gw
mailer:
taskfile: ./mailer/taskfile.yaml
dir: ./mailer
rw:
taskfile: ./rw/taskfile.yaml
dir: ./rw
sub:
taskfile: ./sub/taskfile.yaml
dir: ./sub
protos:
taskfile: ./protos/taskfile.yaml
dir: ./protos
tasks:
default:
desc: "Show available tasks"
cmds:
- task --list-all
run:
desc: "Run application"
cmds:
- docker compose -f docker-compose.yaml up -d
run:load:
desc: "Run application and load tests"
cmds:
- docker compose -f docker-compose.yaml -f docker-compose.e2e.yaml up -d
format:
deps:
- gw:format
- mailer:format
- rw:format
- sub:format
lint:
cmds:
- task gw:lint
- task mailer:lint
- task rw:lint
- task sub:lint
test:
deps:
- gw:test
- mailer:test
- rw:test
- sub:test
test:integration:
deps:
- mailer:test:integration
- sub:test:integration
- rw:test:integration
test:integration-ci:
deps:
- mailer:test:integration-with-env
- sub:test:integration-with-env
test:race:
deps:
- gw:test:race
- mailer:test:race
- rw:test:race
- sub:test:race
update:mod:
desc: "Update go mod in each microservice"
deps:
- task: rw:update:mod
- task: gw:update:mod
- task: mailer:update:mod
- task: sub:update:mod
tidy:mod:
desc: "Tidy go mod in each microservice"
deps:
- task: rw:tidy:mod
- task: gw:tidy:mod
- task: mailer:tidy:mod
- task: sub:tidy:mod
godoc:
desc: "Host a Godoc web server on the http://localhost:6060/pkg/github.com/hrvadl/converter?m=all"
deps: [install:godoc]
cmds:
- echo "go to the http://localhost:6060/pkg/github.com/hrvadl/converter?m=all"
- godoc -http=:6060
install:godoc:
desc: "Installed godoc util"
cmds:
- go install -v golang.org/x/tools/cmd/godoc@latest
status:
- command godoc -h