From a5efab2a139e366fbe7d97e986954af74ef405b4 Mon Sep 17 00:00:00 2001 From: iven Date: Fri, 22 May 2026 08:49:25 +0800 Subject: [PATCH] =?UTF-8?q?ci(mp):=20E3-4=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=20?= =?UTF-8?q?CI=20=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gitea CI 新增 miniprogram-test job(tsc + vitest) - GitHub Actions 新增 miniprogram-test job(tsc + vitest) - 与 Rust/Web CI 并行执行,加速反馈周期 --- .gitea/workflows/ci.yml | 16 ++++++++++++++++ .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f3ac456..7fb01ca 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -67,3 +67,19 @@ jobs: with: node-version: "20" - run: cd apps/web && corepack enable && pnpm install --frozen-lockfile && pnpm audit + + miniprogram-test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: apps/miniprogram + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - run: corepack enable && pnpm install --frozen-lockfile + - name: TypeScript check + run: npx tsc --noEmit + - name: Run tests + run: npx vitest run diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 818e1d2..40bbbe0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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