feat: shard modules and API integration tests (#6775)

what:

- runs module and api integration tests in matrix strategy
  - v28 of jest comes with sharding support, which we can utilize when we upgrade
- splits the tests by number of matrix jobs and run them in parallel
  - This introduced some flakiness in some specs, but couldn't reproduce locally. Those have been skipped for now.
- uses swc/jest for added performance
  - Locally, a chunk took 90 seconds with babel and 30 seconds with swc. 
  - This translated to 2 mins saved per shard in CI, but haven't tested this enough.
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-03-22 11:15:01 +00:00
1 parent 8929b2d60b
commit 4c98545ab3
13 files changed
+269 -35

No files matched your search

+9 -17
View File
@@ -2,29 +2,21 @@
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"!node_modules/**",
"!src/**",
"*/**"
]
"dependsOn": ["^build"],
"outputs": ["!node_modules/**", "!src/**", "*/**"]
},
"test": {
"dependsOn": [
"build"
],
"dependsOn": ["build"],
"outputs": []
},
"test:integration": {
"dependsOn": [
"build"
],
"dependsOn": ["build"],
"outputs": []
},
"test:integration:chunk": {
"dependsOn": ["build"],
"outputs": []
}
},
"globalDependencies": [
"turbo.json"
]
"globalDependencies": ["turbo.json"]
}