Skip to content

Commit 5bf2205

Browse files
committed
Add new configPatterns and searchCommits options
1 parent 0c0009a commit 5bf2205

File tree

9 files changed

+34509
-7656
lines changed

9 files changed

+34509
-7656
lines changed

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,24 @@ jobs:
5757
5858
The action may be customized using the following optional inputs:
5959
60-
| Name | Description | Default |
61-
| :----------------- | :-------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- |
62-
| `monorepo` | Enables [monorepo mode](#monorepo-mode) | `false` |
63-
| `parallel` | Configured parallel execution in [monorepo mode](#monorepo-mode) | `false` |
64-
| `projects` | Custom projects configuration for [monorepo mode](#monorepo-mode) | none |
65-
| `task` | Name of command to run Code PushUp per project in [monorepo mode](#monorepo-mode) | `code-pushup` |
66-
| `nxProjectsFilter` | CLI arguments used to filter Nx projects in [monorepo mode](#monorepo-mode) | `--with-target={task}` |
67-
| `token` | GitHub token for authorizing GitHub API requests | `${{ github.token }}` |
68-
| `annotations` | Toggles if annotations should be created for relevant Code PushUp issues | `true` |
69-
| `artifacts` | Toggles if artifacts will we uploaded/downloaded | `true` |
70-
| `skipComment` | Toggles if comparison comment is posted to PR | `false` |
71-
| `retention` | Artifact retention period in days | from repository settings |
72-
| `directory` | Directory in which `code-pushup` should run | `process.cwd()` |
73-
| `config` | Path to config file (`--config` option) | see [`@code-pushup/cli` docs](https://github.com/code-pushup/cli/tree/main/packages/cli#configuration) |
74-
| `silent` | Toggles if logs from Code PushUp CLI are printed | `false` |
75-
| `bin` | Command for executing Code PushUp CLI | `npx --no-install code-pushup` |
60+
| Name | Description | Default |
61+
| :----------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- |
62+
| `monorepo` | Enables [monorepo mode](#monorepo-mode) | `false` |
63+
| `parallel` | Configured parallel execution in [monorepo mode](#monorepo-mode) | `false` |
64+
| `projects` | Custom projects configuration for [monorepo mode](#monorepo-mode) | none |
65+
| `task` | Name of command to run Code PushUp per project in [monorepo mode](#monorepo-mode) | `code-pushup` |
66+
| `nxProjectsFilter` | CLI arguments used to filter Nx projects in [monorepo mode](#monorepo-mode) | `--with-target={task}` |
67+
| `configPatterns` | Performance optimization for large monorepos, see [`@code-pushup/ci` docs](https://github.com/code-pushup/cli/blob/main/packages/ci/README.md#faster-ci-runs-with-configpatterns) | `null` |
68+
| `token` | GitHub token for authorizing GitHub API requests | `${{ github.token }}` |
69+
| `annotations` | Toggles if annotations should be created for relevant Code PushUp issues | `true` |
70+
| `artifacts` | Toggles if artifacts will we uploaded/downloaded | `true` |
71+
| `skipComment` | Toggles if comparison comment is posted to PR | `false` |
72+
| `searchCommits` | Extends previous report caching for portal users, see [`@code-pushup/ci` docs](https://github.com/code-pushup/cli/blob/main/packages/ci/README.md#search-latest-commits-for-previous-report) | `false` |
73+
| `retention` | Artifact retention period in days | from repository settings |
74+
| `directory` | Directory in which `code-pushup` should run | `process.cwd()` |
75+
| `config` | Path to config file (`--config` option) | see [`@code-pushup/cli` docs](https://github.com/code-pushup/cli/tree/main/packages/cli#configuration) |
76+
| `silent` | Toggles if logs from Code PushUp CLI are printed | `false` |
77+
| `bin` | Command for executing Code PushUp CLI | `npx --no-install code-pushup` |
7678

7779
For example, this will run `code-pushup` commands in a non-root folder and
7880
retain report artifacts for 30 days:

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ inputs:
8080
description: Skip PR comment
8181
required: true
8282
default: false
83+
configPatterns:
84+
description: Performance optimization for large monorepos - `persist` and
85+
`upload` configs provided upfront to skip parsing.
86+
87+
Replaces `{projectName}` in configured values with name of each project.
88+
required: false
89+
searchCommits:
90+
description: |
91+
If enabled and portal cache is used, looks for previous report in target branch's 10
92+
most recent commits (not only latest).
93+
94+
Supports boolean or an integer (1-100), the latter overrides the default number of commits (10).
95+
required: true
96+
default: false
8397

8498
outputs:
8599
artifact-id:

0 commit comments

Comments
 (0)