-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
85 lines (74 loc) · 1.86 KB
/
Taskfile.yml
File metadata and controls
85 lines (74 loc) · 1.86 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
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
version: '3'
vars:
API_SERVICE_PORT: 8080
STORAGE_SERVICE_PORT: 50051
PROCESSOR_SERVICE_PORT: 50051
tasks:
default:
desc: Show available tasks
cmds:
- task --list
proto:generate:
desc: Generate Go code from proto definitions
cmds:
- buf generate
deps:update:
desc: Update Go dependencies
cmds:
- go mod tidy
- go mod verify
lint:
desc: Run linters and static analysis
cmds:
- buf lint
- go vet ./...
services:up:
desc: Start all services
cmds:
- task services:upload
- task services:storage
- task services:processor
services:upload:
desc: Start FileUpload service
cmds:
- go run ./services/api-gateway-service/cmd/server/main.go
services:storage:
desc: Start FileStorage service
cmds:
- go run ./services/file-storage-service/cmd/server/main.go
services:processor:
desc: Start FileProcessor service
cmds:
- go run ./services/file-processor-service/cmd/server/main.go
services:client:
desc: Start FileStorage service
cmds:
- go run ./tools/clients/file_storage_client.go
test:
desc: Run all tests
cmds:
- go test ./.../unit/...
- go test ./.../integration/...
- go test ./.../performance/...
test:unit:
desc: Run unit tests
cmds:
- go test ./.../unit/...
test:integration:
desc: Run integration tests
cmds:
- go test ./.../integration/...
test:performance:
desc: Run performance tests
cmds:
- go test -benchmem -benchtime=5x -bench=. -benchmem ./.../performance/...
test:coverage:
desc: Generate test coverage report
cmds:
- go test -coverprofile=coverage.out ./...
- go tool cover -html=coverage.out -o coverage.html
clean:
desc: Clean generated files and caches
cmds:
- rm -rf gen/
- go clean ./...