hedgedoc/turbo.json
Erik Michelson 15f6e12bee fix(ci): cache cypress binary correctly
It seems cypress installs its own binary under a different path than
the path where it later looks for it for running the tests. This
change adds proper versioned caching for the binary to avoid re-
downloads and configures the binary path accordingly.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 19:55:35 +02:00

129 lines
2.1 KiB
JSON

{
"$schema": "https://turbo.build/schema.json",
"globalPassThroughEnv": [
"HD_*",
"CADDY_HOST"
],
"tasks": {
"build": {},
"@hedgedoc/html-to-react#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"@hedgedoc/commons#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"@hedgedoc/markdown-it-plugins#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"@hedgedoc/frontend#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
"!.next/**"
],
"env": [
"NODEJS_VERSION"
]
},
"@hedgedoc/backend#build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
],
"env": [
"NODEJS_VERSION"
]
},
"build:test": {},
"@hedgedoc/frontend#build:test": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
"!.next/**"
],
"env": [
"NODEJS_VERSION"
]
},
"lint": {
"dependsOn": [
"^build"
]
},
"lint:fix": {
"dependsOn": [
"^build"
]
},
"format": {},
"test": {
"dependsOn": [
"^build"
]
},
"test:ci": {
"dependsOn": [
"^build"
],
"env": [
"NODEJS_VERSION"
],
"outputs": [
"coverage/**"
]
},
"test:e2e:ci": {},
"@hedgedoc/frontend#test:e2e:ci": {
"dependsOn": [
"^build"
],
"env": [
"CYPRESS_CONTAINER_ID"
],
"passThroughEnv": ["*"]
},
"@hedgedoc/backend#test:e2e:ci": {
"dependsOn": [
"^build"
],
"env": [
"HEDGEDOC_TEST_DB_TYPE"
],
"outputs": [
"coverage-e2e/**"
]
},
"start:dev": {
"dependsOn": [
"^build"
],
"cache": false,
"persistent": true
},
"start": {
"cache": false,
"persistent": true
}
}
}