ci: 搭建前后端持续集成

This commit is contained in:
leonincs
2026-05-24 00:19:34 +08:00
parent 8a3d18b097
commit 88196db47f
2 changed files with 71 additions and 0 deletions

View File

@@ -66,6 +66,13 @@ cd frontend
npm install && npm run dev
```
## CI
GitHub Actions 配置位于 `.github/workflows/ci.yml`,在 Pull Request 以及推送到 `main``master` 时运行。
- 后端Go 1.24.x执行 `go mod download``go vet ./...``go test -race -count=1 ./...`
- 前端Node.js 22执行 `npm ci``npm run build`
## 接口清单
### 账号 `/account`