Files
iistwin/.github/workflows/pr-check.yml
Ильяс Султанов abd5d4b65f 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
2026-09-08 00:11:38 +03:00

56 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Branch Check
on:
push:
branches-ignore:
- main
pull_request:
branches:
- main
jobs:
check:
name: Type Check & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check
# googleapis добавляет очень тяжёлые .d.ts — без увеличения heap tsc падает с OOM (Ineffective mark-compacts)
env:
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
- name: Type check document worker
run: |
cd server/documents/worker
npm ci
npm run check
- name: Build
run: npm run build