* perf(ci): use Turbo to schedule both `lint` and `test` tasks at once * fix(ci): wait until service containers are initialized for tests This is achieved by adding a health check to the containers, and instructing the CI workflow to wait until the containers are healthy. Not doing this wait risks spurious CI failures due to DB migrations being applied before the DB even starts. * chore(turbo): use locally installed schema in new Turbo override file On the latest versions of Turbo, this ensures that the used schema is always in sync with what's available in the installed Turbo version, which is something that has already caused confusion to me before.
15 lines
356 B
JSON
15 lines
356 B
JSON
{
|
|
"$schema": "../../node_modules/turbo/schema.json",
|
|
"extends": ["//"],
|
|
"tasks": {
|
|
// Running Clippy and tests on a Tauri application requires
|
|
// the frontend to be built at least once first
|
|
"lint": {
|
|
"dependsOn": ["@modrinth/app-frontend#build"]
|
|
},
|
|
"test": {
|
|
"dependsOn": ["@modrinth/app-frontend#build"]
|
|
}
|
|
}
|
|
}
|