-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
56 lines (47 loc) · 1.02 KB
/
Taskfile.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
54
55
56
version: "3"
tasks:
lint:
desc: Lint code
cmds:
- golangci-lint run -c .golangci.yml
summary: Lint the project with golangci-lint
fmt:
desc: Run `go fmt` to format the code
cmds:
- go fmt ./...
test:
desc: Run the tests
cmds:
- go test -v ./...
run:
desc: Start the service
env: &local_env
LOCAL: LOCAL
WORKER_HTTP_HOST: "localhost"
WORKER_HTTP_PORT: "7777"
MANAGER_HTTP_HOST: "localhost"
MANAGER_HTTP_PORT: "8888"
cmds:
- go run -v cmd/server/main.go
debug:
desc: Start the service with delve for debugging
env: *local_env
cmds:
- dlv debug cmd/server/main.go
tidy:
desc: Run 'go mod tidy' to clean up module files.
cmds:
- go mod tidy -v
check-tidy:
desc: Check go.mod is tidy
cmds:
- go mod tidy -v
- git diff --exit-code -- go.mod go.sum
vendor:
desc: go mod vendor
cmds:
- go mod vendor
build:
desc: Build main
cmds:
- go build -v ./...