From 8c51cf9f9aeb0eafa32940ea574b2f61f04cfc6e Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Sun, 15 Feb 2026 02:03:33 +0800 Subject: [PATCH] ci: add test step to CI pipeline Add test task to turbo.json and include it in the build-and-typecheck job. Turbo handles the dependency graph: builds deps first, then runs typecheck and test in parallel for each package. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 4 ++-- turbo.json | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 747d9a8b..72aa067c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,5 +59,5 @@ jobs: turbo-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}- turbo-${{ runner.os }}- - - name: Build and type check - run: pnpm turbo build typecheck + - name: Build, type check, and test + run: pnpm turbo build typecheck test diff --git a/turbo.json b/turbo.json index 3e98b540..25f29d58 100644 --- a/turbo.json +++ b/turbo.json @@ -18,6 +18,11 @@ "inputs": ["src/**", "package.json", "tsconfig.json"], "outputs": [] }, + "test": { + "dependsOn": ["^build"], + "inputs": ["src/**", "package.json", "tsconfig.json", "vitest.config.*"], + "outputs": [] + }, "lint": { "inputs": ["src/**", "package.json", "eslint.config.*", ".eslintrc.*"], "outputs": []