You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`parallel`|`boolean \| number`|`false`| Enables parallel execution in [monorepo mode](#monorepo-mode)|
100
101
|`projects`|`string[] \| null`|`null`| Custom projects configuration for [monorepo mode](#monorepo-mode)|
101
102
|`task`|`string`|`'code-pushup'`| Name of command to run Code PushUp per project in [monorepo mode](#monorepo-mode)|
102
103
|`nxProjectsFilter`|`string \| string[]`|`'--with-target={task}'`| Arguments passed to [`nx show projects`](https://nx.dev/nx-api/nx/documents/show#projects), only relevant for Nx in [monorepo mode](#monorepo-mode)[^2]|
@@ -193,6 +194,27 @@ await runInCI(refs, api, {
193
194
});
194
195
```
195
196
197
+
### Parallel tasks
198
+
199
+
By default, tasks are run sequentially for each project in the monorepo.
200
+
The `parallel` option enables parallel execution for tools which support it (Nx, Turborepo, PNPM, Yarn 2+).
201
+
202
+
```ts
203
+
awaitrunInCI(refs, api, {
204
+
monorepo: true,
205
+
parallel: true,
206
+
});
207
+
```
208
+
209
+
The maximum number of concurrent tasks can be set by passing in a number instead of a boolean:
210
+
211
+
```ts
212
+
awaitrunInCI(refs, api, {
213
+
monorepo: true,
214
+
parallel: 3,
215
+
});
216
+
```
217
+
196
218
### Monorepo result
197
219
198
220
In monorepo mode, the resolved object includes the merged diff at the top-level, as well as a list of projects.
0 commit comments