opencode/turbo.json
Filip Hejmowski d471d2c231 chore(ci): stop gating unit tests on library builds
Every workspace package exports its sources, so no test reads a
library's dist, yet each test task waited for its dependencies' builds
(14 builds before core:test could start on a full run). Test tasks now
depend only on transit, which still folds the whole workspace closure
into their hashes, and builds hash their closure the same way.

The unit job therefore no longer proves the libraries build, so the
build job builds the affected libraries on Linux (tsc and Bun.build,
nothing platform-specific). The Windows Turbo cache in the unit job is
removed: with no builds left there, it could only replay test tasks,
and transit gives every scheduled test a new hash, so it could not hit.
2026-10-15 22:11:30 +02:00

147 lines
3.6 KiB
JSON

{
"$schema": "https://v2-8-13.turborepo.dev/schema.json",
"globalDependencies": [
"patches/**",
"bunfig.toml",
".npmrc",
".github/actions/setup-bun/**",
".github/workflows/test.yml",
"package.json"
],
"globalEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
"globalPassThroughEnv": ["CI", "OPENCODE_DISABLE_SHARE"],
"tasks": {
"typecheck": {},
"@opencode/cli#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"test:components": {
"outputs": [],
"cache": false
},
"@opencode/enterprise#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/sdk#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/server#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/simulation#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"@opencode/tui#typecheck": {
"dependsOn": ["@opencode/core#typecheck"]
},
"build": {
"dependsOn": ["transit"],
"outputs": ["dist/**"]
},
// Workspace packages export their sources, so tests never wait for a dependency's build; the build job in
// test.yml checks the library builds. No package has a transit script: it runs nothing and only folds every
// workspace dependency into the test hash.
"transit": {
"dependsOn": ["^transit"]
},
"@opencode/ai#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/codemode#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/core#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/function#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/desktop#test": {
"outputs": [],
"cache": false
},
"@opencode/httpapi-codegen#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/server#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/cli#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/tui#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/latex#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/app#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/ui#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/session-ui#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/client#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/gui-extensions#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/http-recorder#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/merman#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/plugin#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/plugin-browser#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/script#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/sdk#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/simulation#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/theme#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/util#test": {
"dependsOn": ["transit"],
"outputs": []
},
"@opencode/sdk#verify:package": {
"outputs": []
}
}
}