-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Turborepo integration tests to their own workspace #4617
Conversation
This allows us to use turbo to execute them
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Ignored Deployments
|
✅ This changes can build |
@@ -16,7 +16,8 @@ | |||
"turbo-prebuilt": "node turbow.js", | |||
"docs": "pnpm -- turbo run dev --filter=docs --no-cache", | |||
"run-example": "./scripts/run-example.sh", | |||
"prepare": "husky install" | |||
"prepare": "husky install", | |||
"test": "pnpm -- turbo run test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the pattern, but if we had global turbo in Github CI, we wouldn't need to use pnpm -- turbo
"extends": ["//"], | ||
"pipeline": { | ||
"test": { | ||
"dependsOn": ["cli#build"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is here for completeness, but in the general case, we're building a local turbo before we run the test
task, so turbo is already built. I can remove this if people have strong opinions.
Benchmark for f1443e1
Click to view full benchmark
|
|
Merging this as all relevant checkes have passed. The remaining checks are Turbopack Rust testing and Turbopack benchmarking, which are very slow and also unaffected by this PR. They are triggered because |
This enables us to remove the bespoke turbo task to run these tests, and also reduces our dependency on Makefile. Further, we can extract the helpers into their own workspace after this and use them for examples_tests so we can wire up dependencies even more accurately The Turbo Way.
Moving into their own workspace so we can run them independently via Turbo (not Makefile), and potentially finding ways to test against examples, etc. Instead of:
Before:
After:
Alternatively: