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 <noreply@anthropic.com>
This commit is contained in:
Jiayuan Zhang 2026-02-15 02:03:33 +08:00
parent 2727ecd803
commit 8c51cf9f9a
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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": []