Add GitHub Actions CI: lint, typecheck, tests and build on PRs to master
Runs on every pull request to master and on push to master (Node 22, npm ci, CI=true). The gitea deploy workflow is unchanged. README describes the check and recommends making it required for master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
11
README.md
11
README.md
@@ -108,6 +108,17 @@ CRA типы не проверяет — их вырезает babel, а про
|
||||
|
||||
Перед коммитом стоит прогнать все четыре проверки: `lint`, `typecheck`, `test:ci`, `build`.
|
||||
|
||||
### CI (GitHub Actions)
|
||||
|
||||
`.github/workflows/ci.yml` запускается на каждый PR в `master` и на push в `master`:
|
||||
Node 22, `npm ci`, затем те же четыре проверки с `CI=true` (в этом режиме
|
||||
предупреждения сборки CRA считаются ошибками). `REACT_APP_*` не задаются — для
|
||||
проверок они не нужны. Деплой по-прежнему делает `.gitea/workflows/deploy.yml`.
|
||||
|
||||
Рекомендуется включить защиту ветки: GitHub → Settings → Branches → правило для
|
||||
`master` → *Require status checks to pass before merging* → выбрать проверку
|
||||
`lint, typecheck, test, build` (появится в списке после первого запуска workflow).
|
||||
|
||||
---
|
||||
|
||||
## 5. Структура проекта
|
||||
|
||||
Reference in New Issue
Block a user