From 22e331e2ff4c5f68b3273de89fe9968029a1343d Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Sun, 13 Sep 2026 16:10:06 +0300 Subject: [PATCH] ci: run full frontend verification #1 --- .gitea/workflows/{biome.yml => verify.yml} | 9 ++++++--- AGENTS.md | 5 +++++ commitlint.config.cjs | 15 ++++++++++++++- 3 files changed, 25 insertions(+), 4 deletions(-) rename .gitea/workflows/{biome.yml => verify.yml} (64%) diff --git a/.gitea/workflows/biome.yml b/.gitea/workflows/verify.yml similarity index 64% rename from .gitea/workflows/biome.yml rename to .gitea/workflows/verify.yml index 316631a..4c16ceb 100644 --- a/.gitea/workflows/biome.yml +++ b/.gitea/workflows/verify.yml @@ -1,4 +1,4 @@ -name: Biome +name: Frontend verify on: push: @@ -6,14 +6,17 @@ on: - '**' jobs: - biome: + verify: runs-on: ubuntu-latest steps: - uses: https://github.com/actions/checkout@v4 + - name: Record checked revision + run: git rev-parse HEAD - uses: https://github.com/actions/setup-node@v4 with: node-version-file: .nvmrc - run: npm ci env: HUSKY: '0' - - run: npm run lint + - name: Run all frontend gates + run: npm run verify diff --git a/AGENTS.md b/AGENTS.md index 495c493..b036c63 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,6 +17,11 @@ HTTP contract changes дополнительно проходят общий Generated types редактируются через их source; T-Bank доступен только через backend. Frontend dependencies используют exact versions. Pre-commit запускает staged formatting и FSD checks; сообщения commits — Conventional Commits. +Заголовок каждого коммита заканчивай номером реальной issue этого репозитория: +`[optional scope]: #`, например +`ci: run full frontend verification #1`. Номер бери из текущей задачи; +если issue не указана, уточни её перед коммитом. Ссылка в body не заменяет +суффикс в заголовке. Формат проверяет `commitlint.config.cjs`. Code/style checks автоматические только в scope конфигурации. i18n, props, semantic placement и выбор полезных тестов обязательны при review. diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 5073c20..b09c386 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -1 +1,14 @@ -module.exports = { extends: ["@commitlint/config-conventional"] }; +module.exports = { + extends: ["@commitlint/config-conventional"], + plugins: [ + { + rules: { + "header-issue-suffix": ({ header }) => [ + / \S.* #[1-9]\d*$/.test(header ?? ""), + "header must end with an issue number, e.g. ci: run verification #1", + ], + }, + }, + ], + rules: { "header-issue-suffix": [2, "always"] }, +};