Files
discordeno/turbo.json
Fleny e32c670ab1 fix(ci): Add env to test:e2e turbo task (#3809)
* Add env to test:e2e turbo task

Turbo in v2 does not pass down the environment variables unless manually specified (by default)

* use the correct env name for the test guild
2024-07-30 21:18:07 +02:00

49 lines
1.2 KiB
JSON

{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"outputs": ["dist/**/*.js"],
"inputs": ["src/**/*.ts"]
},
"build:type": {
"dependsOn": ["^build:type"],
"outputs": ["dist/types/**/*.d.ts", "dist/types/**/*.d.ts.map", "dist/tsconfig.tsbuildinfo"]
},
"test:unit-coverage": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"]
},
"test:unit": {
"dependsOn": ["^build", "build", "build:type"],
"outputs": ["coverage/**"]
},
"test:integration": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"]
},
"test:test-type": {
"dependsOn": ["^build:type"]
},
"test:deno-unit": {
"dependsOn": ["^build", "build", "build:type"],
"outputs": ["denoTestsDist/**"]
},
"test:bun-unit": {
"dependsOn": ["^build", "build", "build:type"],
"outputs": ["bunTestsDist/**"]
},
"test:e2e": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"],
"env": ["DISCORD_TOKEN", "E2E_TEST_GUILD_ID"]
},
"lint": {
"dependsOn": ["build:type"],
"cache": false
},
"fmt": {
"cache": false
}
}
}