@@ -60,6 +60,7 @@ The action may be customized using the following optional inputs:
6060| Name | Description | Default |
6161| :----------------- | :-------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- |
6262| ` monorepo` | Enables [monorepo mode](#monorepo-mode) | `false` |
63+ | `parallel` | Configured parallel execution in [monorepo mode](#monorepo-mode) | `false` |
6364| `projects` | Custom projects configuration for [monorepo mode](#monorepo-mode) | none |
6465| `task` | Name of command to run Code PushUp per project in [monorepo mode](#monorepo-mode) | `code-pushup` |
6566| `nxProjectsFilter` | CLI arguments used to filter Nx projects in [monorepo mode](#monorepo-mode) | `--with-target={task}` |
@@ -68,7 +69,6 @@ The action may be customized using the following optional inputs:
6869| `artifacts` | Toggles if artifacts will we uploaded/downloaded | `true` |
6970| `retention` | Artifact retention period in days | from repository settings |
7071| `directory` | Directory in which `code-pushup` should run | `process.cwd()` |
71- | `output` | Directory where reports will be created | `.code-pushup` |
7272| `config` | Path to config file (`--config` option) | see [`@code-pushup/cli` docs](https://github.com/code-pushup/cli/tree/main/packages/cli#configuration) |
7373| `silent` | Toggles if logs from Code PushUp CLI are printed | `false` |
7474| `bin` | Command for executing Code PushUp CLI | `npx --no-install code-pushup` |
@@ -153,17 +153,6 @@ can override the name using the optional `task` input:
153153 task: analyze # custom Nx target
154154` ` `
155155
156- For caching purposes, you may prefer to separate output directories per project.
157- The `output` input supports interpolating the project name in the path using
158- `{project}` syntax :
159-
160- ` ` ` yml
161- - uses: code-pushup/github-action@v0
162- with:
163- monorepo: true
164- output: .code-pushup/{project}
165- ` ` `
166-
167156In Nx monorepos, projects are listed using
168157` nx show projects --with-target=code-pushup` by default. The `nxProjectsFilter`
169158input sets the CLI arguments forwarded to
@@ -179,3 +168,26 @@ be run:
179168 nxProjectsFilter:
180169 '--with-target=code-pushup --affected --projects=apps/* exclude=*-e2e'
181170` ` `
171+
172+ # ## Parallel tasks
173+
174+ By default, tasks are run sequentially for each project in the monorepo. The
175+ ` parallel` input enables parallel execution for tools which support it (Nx,
176+ Turborepo, PNPM, Yarn 2+).
177+
178+ ` ` ` yml
179+ - uses: code-pushup/github-action@v0
180+ with:
181+ monorepo: true
182+ parallel: true
183+ ` ` `
184+
185+ The maximum number of concurrent tasks can be set by passing in a number instead
186+ of a boolean :
187+
188+ ` ` ` yml
189+ - uses: code-pushup/github-action@v0
190+ with:
191+ monorepo: true
192+ parallel: 3
193+ ` ` `
0 commit comments