Mise: project-local toolchain bootstrap (Linux + Windows)
PR checks / web (pull_request) Successful in 44s
PR checks / java (pull_request) Successful in 1m1s
Main: tests, deploy, autotests / web (push) Successful in 41s
Main: tests, deploy, autotests / java (push) Successful in 56s
Main: tests, deploy, autotests / images-app (push) Successful in 42s
Main: tests, deploy, autotests / images-web (push) Successful in 1m5s
Main: tests, deploy, autotests / deploy (push) Successful in 1m32s
Main: tests, deploy, autotests / autotests (push) Successful in 1m18s
Main: tests, deploy, autotests / rollback (push) Has been skipped

Корневой mise.toml пинит java temurin-17, maven 3.9.16, node 24, python 3.15
и задачи (verify/app-package/app-run/web-*/prod-tests); bootstrap.sh/.ps1
скачивают mise v2026.10.19 в ./.mise/bin (gitignored, вне системы); обёртки
mise.sh/.ps1 зовут его без PATH/активации шелла. prod-autotests/mise.toml
удалён — дубль корневого (venv тем же путём). AGENTS.md синхронизирован.
This commit was merged in pull request #51.
This commit is contained in:
Pjandro
2026-10-25 20:00:51 +00:00
parent 922bc915ba
commit ddb41ab620
8 changed files with 107 additions and 7 deletions
+48
View File
@@ -0,0 +1,48 @@
# Инструменты проекта: ставятся в кеш mise (~/.local/share/mise), не в систему.
# Сам mise — в ./.mise/bin (bootstrap.sh / bootstrap.ps1), см. README-секцию ниже.
[tools]
java = "temurin-17" # CI и Containerfile — temurin 17
maven = "3.9.16" # ровно версия из .gitea/workflows/{pr,main}.yml
node = "24" # wordpdf-web/Containerfile — node:24-alpine
python = "3.15" # prod-autotests (pytest 9.1.1 + requests 2.34.2)
[env]
# venv прод-автотестов; путь от корня проекта. Создаётся автоматически.
_.python.venv = { path = "prod-autotests/.venv", create = true }
[tasks.verify]
description = "mvn clean verify — полный гейт перед push (тесты + PMD + JaCoCo)"
run = "mvn clean verify"
[tasks.app-package]
description = "Исполняемый jar бэкенда"
run = "mvn -pl wordpdf-app -am package"
[tasks.app-run]
description = "Бэкенд на :8080, ключ выключен (после app-package)"
run = "java -jar wordpdf-app/target/wordpdf-app-1.0.0.jar"
[tasks.web-install]
description = "npm ci в wordpdf-web"
dir = "wordpdf-web"
run = "npm ci"
[tasks.web-build]
description = "Гейт SPA: tsc -b && vite build"
dir = "wordpdf-web"
run = "npm run build"
[tasks.web-lint]
description = "oxlint"
dir = "wordpdf-web"
run = "npm run lint"
[tasks.web-dev]
description = "SPA :5173, vite-proxy на :8080"
dir = "wordpdf-web"
run = "npm run dev"
[tasks.prod-tests]
description = "Прод-автотесты; обязателен WORDPDF_BASE_URL (факультативно WORDPDF_API_KEY)"
dir = "prod-autotests"
run = "python -m pip install -q -r requirements.txt && python -m pytest -q ."