ci(mp): E3-4 小程序 CI 集成

- Gitea CI 新增 miniprogram-test job(tsc + vitest)
- GitHub Actions 新增 miniprogram-test job(tsc + vitest)
- 与 Rust/Web CI 并行执行,加速反馈周期
This commit is contained in:
iven
2026-05-22 08:49:25 +08:00
parent be8ae84d45
commit a5efab2a13
2 changed files with 41 additions and 0 deletions

View File

@@ -82,3 +82,28 @@ jobs:
- name: Security audit (npm)
run: npx npm-audit --audit-level=high || true
miniprogram-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/miniprogram
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: apps/miniprogram/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- name: TypeScript check
run: npx tsc --noEmit
- name: Run tests
run: npx vitest run