-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
27 lines (25 loc) · 1.23 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
# ./Taskfile.yaml
# See: https://taskfile.dev/api/
version: "3"
tasks:
default: # Если не указать конкретную команду, будут выполнены дефолтные
cmds:
- task: migrate
migrate: ## Команда для миграции базы
aliases: ## Алиасы команды, для простоты использования
- mig
desc: "Migrate SQLITE database"
cmds: ## Тут описываем необходимые bash-команды
- go run ./cmd/migrator --storage-path=./storage/sso.db --migrations-path=./migrations
run: ## Команда для запуска сервера
aliases:
- r
desc: "Run server"
cmds:
- go run cmd/sso/main.go --config=./config/local.yaml
testmigrate: ## Команда для миграции базы для тестов
aliases: ## Алиасы команды, для простоты использования
- tm
desc: "Migrate SQLITE database for tests"
cmds: ## Тут описываем необходимые bash-команды
- go run ./cmd/migrator/main.go --storage-path=./storage/sso.db --migrations-path=./tests/migrations --migrations-table=migrations_test