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:
parent
2727ecd803
commit
8c51cf9f9a
2 changed files with 7 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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": []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue