改用本地推送质量检查

This commit is contained in:
yml2213
2026-08-31 12:32:13 +08:00
parent efde8897c8
commit d47360f484
3 changed files with 21 additions and 36 deletions
+15
View File
@@ -97,6 +97,21 @@ docker compose -f docker-compose.dev.yml exec -T frontend npm run typecheck
docker compose -f docker-compose.dev.yml exec -T frontend npm run build
```
### 本地推送检查
本项目不使用 Gitea Actions。需要在本机推送前自动执行前后端检查时,启用本地 Git hook:
```bash
bash scripts/install-git-hooks.sh
```
启用后,每次 `git push` 会依次执行 `apps/backend``apps/frontend``npm run check`
仅临时跳过检查时使用:
```bash
SKIP_CHECKS=1 git push
```
## 数据库迁移
采用 **基线 + 渐进增量** 策略,由 `node-pg-migrate` 管理,记录表为 `schema_migrations`