chore(ci+logs): eslint в CI, npm audit, logger с уровнями, retention error_logs
Шаги 1.6 и 1.7 плана production-готовности: - eslint flat-config (баг-ловушки, легаси warn), lint блокирующий в pr-check - npm audit --audit-level=high в CI (отчёт) - фикс реального бага: условный useRef в TaskTitleInline - server/utils/logger.ts (LOG_LEVEL/LOG_FORMAT) в 5 горячих местах - error_logs retention 30 дней (worker), redactSensitive в captureErrorLog - 0 errors lint, vitest 96/96
This commit is contained in:
10
.github/workflows/pr-check.yml
vendored
10
.github/workflows/pr-check.yml
vendored
@@ -32,6 +32,16 @@ jobs:
|
||||
NODE_OPTIONS: --max-old-space-size=6144
|
||||
run: npm run check
|
||||
|
||||
- name: Lint
|
||||
# Базовый eslint: error только на критичных правилах (rules-of-hooks и др.),
|
||||
# легаси-проблемы — warn и не блокируют сборку
|
||||
run: npm run lint
|
||||
|
||||
- name: npm audit (high)
|
||||
# Только отчёт — уязвимости чинятся отдельными задачами, сборку не блокируем
|
||||
continue-on-error: true
|
||||
run: npm audit --audit-level=high
|
||||
|
||||
- name: Tests
|
||||
run: npm test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user