-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
58 lines (41 loc) · 1.11 KB
/
Taskfile.yml
File metadata and controls
58 lines (41 loc) · 1.11 KB
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
# https://taskfile.dev
version: '3'
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
tasks:
lint:
cmds:
- docker run -v ${PWD}:/data cytopia/golint:latest ./...
build:
cmds:
- docker build --rm --file=./build/docker/starter.dockerfile --tag jasonsoft/starter:latest .
test:
cmds:
- go test -v ./...
run:
cmds:
- task: build
- docker-compose up --scale worker=1
infra:
cmds:
- docker-compose -f docker-compose-infra.yml up -d
infra-down:
cmds:
- docker-compose -f docker-compose-infra.yml down
proto:
cmds:
- protoc --proto_path=. --go_out=plugins=grpc:. ./pkg/event/proto/*.proto
- protoc --proto_path=. --go_out=plugins=grpc:. ./pkg/wallet/proto/*.proto
gql:
dir: pkg/frontend/delivery/gql/
cmds:
- go run github.com/99designs/gqlgen --verbose
sql:
dir: deployments\database
cmds:
- migrate create -ext sql {{.name}}
migrate:
dir: deployments\database
cmds:
- migrate -source file://{{.db}}/. -database "mysql://root:root@tcp(localhost:3306)/{{.db}}" up