ci: Playwright 后 SSH moicen 只读校验(PG/Redis/日志)
新增 scripts/moicen-remote-readonly-check.sh;同源 PR/push 跑 MOICEN_SSH_*。 Made-with: Cursor
This commit is contained in:
@@ -35,6 +35,8 @@ npx playwright test
|
||||
|
||||
可选:在 **Settings → Secrets and variables → Actions → Variables** 配置 **`MOICEN_HEALTHCHECK_URL`**(完整 URL,返回 2xx),用于可选后端健康检查用例;未配置时该条自动 skip。
|
||||
|
||||
Playwright 成功后,CI 会 **SSH 到 moicen**(需 Secrets:**`MOICEN_SSH_PRIVATE_KEY`**、**`MOICEN_SSH_USER`**、**`MOICEN_SSH_KNOWN_HOSTS`**),在机上执行 **`scripts/moicen-remote-readonly-check.sh`**:`TS_DATABASE_URL` 探库、`redis-cli ping`、tail **`htyproc`** 与 **OpenResty error.log**。fork 仓库发起的 PR 不会跑该步(无 Secrets)。主机名固定 **`moicen.com`**(写在 workflow)。
|
||||
|
||||
`workflow_dispatch` 可改目标 `base_url`;**默认定时:每天 06:30 UTC**(见 `.github/workflows/playwright-music-room.yml`)。
|
||||
|
||||
## 与 moicen 运维文档
|
||||
|
||||
Reference in New Issue
Block a user