Update Jest configuration to include TypeScript support and add new code quality checks workflow; translate comments to Russian and adjust paths in test files.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-12-05 16:51:44 +03:00
parent d477a0a5f1
commit 7066252bcb
14 changed files with 646 additions and 294 deletions

View File

@@ -0,0 +1,28 @@
name: Code Quality Checks
run-name: Проверка кода (lint & typecheck) от ${{ gitea.actor }}
on: [push]
jobs:
lint-and-typecheck:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run eslint -- --quiet
- name: Run TypeScript type check
run: npx tsc --noEmit
- name: Run tests
run: npm test -- --quiet