Files
discordeno/turbo.json
Fleny 011f0fe0dc ci: Use turbo remote cache (#4666)
* Use a turbo remote cache server for CI

`rharkor/caching-for-turbo` uses github actions cache to provide a remote cache server for turbo, so we can use previuously created cache if available and requested by turbo, and this doesn't have the downside of having the cache growing indefinitely like with normal github actions cache as since the single caches are uploaded to the github actions cache, github can evict the old cache when it's not used or there is no space left.

Also add turbo to website so we can cache the build

* Use turbo for website build & build:doc

* fix typo, tubo -> turbo

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2026-01-07 13:40:27 -06:00

49 lines
1.3 KiB
JSON

{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"outputs": ["dist/**/*.js"],
"inputs": ["src/**/*.ts"]
},
"build:type": {
"dependsOn": ["^build:type"],
"outputs": ["dist/**/*.d.ts", "dist/**/*.d.ts.map", "dist/tsconfig.tsbuildinfo"]
},
"test:unit-coverage": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"]
},
"test:unit": {
"dependsOn": ["^build", "build"],
"outputs": ["coverage/**"]
},
"test:integration": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"]
},
"test:test-type": {
"dependsOn": ["^build:type"]
},
"test:deno-unit": {
"dependsOn": ["^build", "build"]
},
"test:bun-unit": {
"dependsOn": ["^build", "build"]
},
"test:e2e": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"],
"env": ["DISCORD_TOKEN", "E2E_TEST_GUILD_ID"]
},
"check": {
"dependsOn": ["build:type"],
"cache": false
},
"build:doc": {
// NOTE: This task can only be run with "--singe-package" in the flags to turbo, as it is defined only in the root package.json
"inputs": ["packages/**/src/**/*.ts"],
"outputs": ["website/api_reference/generated/**/*"]
}
}
}