Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
108 lines (90 loc) · 2.55 KB
/
Copy pathTaskfile.yml
File metadata and controls
108 lines (90 loc) · 2.55 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3"
tasks:
run:back:
desc: Run backend
cmds:
- cd backend && go run ./cmd/api
run:front:
desc: Run frontend
deps: [sync:front]
dir: ./frontend
cmds:
- npm run dev -- --host 127.0.0.1
run:notifier:
desc: Run notification worker locally
dotenv: [.env]
cmds:
- cd backend && go run ./cmd/notifier
dev:notify:simulate:
desc: Write fake alert overrides (requires NOTIFICATIONS_DEV=true)
dotenv: [.env]
cmds:
- cd backend && go run ./cmd/dev-notify simulate {{.CLI_ARGS}}
dev:notify:scan:
desc: Run one notifier scan cycle (requires NOTIFICATIONS_DEV=true for fake alerts)
dotenv: [.env]
cmds:
- cd backend && go run ./cmd/dev-notify scan
dev:notify:reset:
desc: Clear notifier delivery ledger (optionally --portfolio <id>)
dotenv: [.env]
cmds:
- cd backend && go run ./cmd/dev-notify reset {{.CLI_ARGS}}
test:
desc: All tests (back, then front)
cmds:
- task: test:back
- task: test:front
test:back:
desc: Test backend
cmds:
- cd backend && go test ./...
test:front:
desc: Test frontend
deps: [sync:front]
dotenv: [.env]
dir: ./e2e/playwright
cmds:
- npm install
- echo "E2E — поднимаем backend/frontend (если ещё не запущены) и гоняем Playwright…"
- npx playwright test --reporter=line
sync:back:
desc: Sync backend dependencies
cmds:
- cd backend && go mod download
sync:front:
desc: Sync frontend dependencies
dir: ./frontend
cmds:
- npm install
record:media:
desc: Record and process product tour screencast (needs ffmpeg for VP9 polish)
deps: [sync:front]
dir: ./e2e/playwright
cmds:
- npm install
- npx playwright test -c media/playwright.media.config.ts
deploy:sync:
desc: Download Porter deploy dependencies
cmds:
- cd deploy && go mod download
deploy:bootstrap:
desc: First-time VPS setup (Docker, git clone, .env, compose)
deps: [deploy:sync]
cmds:
- cd deploy && go run . bootstrap
deploy:bootstrap-dry:
desc: Preview first-time VPS bootstrap
deps: [deploy:sync]
cmds:
- cd deploy && go run . bootstrap -dry-run
deploy:update:
desc: Manual update on VPS (git pull + compose pull, keeps .env)
deps: [deploy:bootstrap]
cmds:
- cd deploy && go run . update
deploy:update-dry:
desc: Preview manual VPS update
deps: [deploy:bootstrap]
cmds:
- cd deploy && go run . update -dry-run