Skip to content

Commit e82c53a

Browse files
author
Michael Hladky
committed
Merge remote-tracking branch 'origin/main' into refactor/nx-plugin/fix-verbose-handling
2 parents 61d7252 + 7201542 commit e82c53a

File tree

21 files changed

+193
-75
lines changed

21 files changed

+193
-75
lines changed

.github/actions/code-pushup/src/runner.ts

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -129,42 +129,51 @@ function createGitHubApiClient(): ProviderAPIClient {
129129
};
130130
}
131131

132+
function setupOptions(): Options {
133+
const isMonorepo = process.env['MODE'] === 'monorepo';
134+
135+
if (isMonorepo) {
136+
return {
137+
jobId: 'monorepo-mode',
138+
monorepo: 'nx',
139+
nxProjectsFilter: '--with-target=code-pushup --exclude=workspace',
140+
configPatterns: {
141+
persist: {
142+
...DEFAULT_PERSIST_CONFIG,
143+
outputDir: '.code-pushup/{projectName}',
144+
},
145+
...(process.env['CP_API_KEY'] && {
146+
upload: {
147+
server: 'https://api.staging.code-pushup.dev/graphql',
148+
apiKey: process.env['CP_API_KEY'],
149+
organization: 'code-pushup',
150+
project: 'cli-{projectName}',
151+
},
152+
}),
153+
},
154+
};
155+
}
156+
157+
// tsx importer need to resolve plugin runner scripts
158+
// eslint-disable-next-line functional/immutable-data
159+
process.env['NODE_OPTIONS'] = '--import=tsx';
160+
161+
return {
162+
jobId: 'standalone-mode',
163+
// run without Nx to demonstrate native GitHub Actions log groups
164+
bin: 'node packages/cli/src/index.ts',
165+
};
166+
}
167+
132168
async function run(): Promise<void> {
133169
try {
134170
if (core.isDebug()) {
135171
logger.setVerbose(true);
136172
}
137173

138-
const isMonorepo = process.env['MODE'] === 'monorepo';
139-
140-
const options: Options = isMonorepo
141-
? {
142-
jobId: 'monorepo-mode',
143-
monorepo: 'nx',
144-
nxProjectsFilter: '--with-target=code-pushup --exclude=workspace',
145-
configPatterns: {
146-
persist: {
147-
...DEFAULT_PERSIST_CONFIG,
148-
outputDir: '.code-pushup/{projectName}',
149-
},
150-
...(process.env['CP_API_KEY'] && {
151-
upload: {
152-
server: 'https://api.staging.code-pushup.dev/graphql',
153-
apiKey: process.env['CP_API_KEY'],
154-
organization: 'code-pushup',
155-
project: 'cli-{projectName}',
156-
},
157-
}),
158-
},
159-
}
160-
: {
161-
jobId: 'standalone-mode',
162-
bin: 'npx nx code-pushup --',
163-
};
164-
165174
const gitRefs = parseGitRefs();
166-
167175
const apiClient = createGitHubApiClient();
176+
const options = setupOptions();
168177

169178
const result = await runInCI(gitRefs, apiClient, options);
170179

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 0.92.1 (2025-12-03)
2+
3+
### 🩹 Fixes
4+
5+
- **utils:** prevent nested github actions log groups when run within nx target ([cb9ffd52](https://github.com/code-pushup/cli/commit/cb9ffd52))
6+
- **utils:** fix long word wrapping with ansis styles in tables ([f20b3b87](https://github.com/code-pushup/cli/commit/f20b3b87))
7+
8+
### ❤️ Thank You
9+
10+
- Matěj Chalk
11+
112
## 0.92.0 (2025-12-02)
213

314
### 🚀 Features

packages/ci/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/ci",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"description": "CI automation logic for Code PushUp (provider-agnostic)",
55
"license": "MIT",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/ci#readme",
@@ -26,9 +26,9 @@
2626
},
2727
"type": "module",
2828
"dependencies": {
29-
"@code-pushup/models": "0.92.0",
29+
"@code-pushup/models": "0.92.1",
3030
"@code-pushup/portal-client": "^0.16.0",
31-
"@code-pushup/utils": "0.92.0",
31+
"@code-pushup/utils": "0.92.1",
3232
"ansis": "^3.3.2",
3333
"glob": "^11.0.1",
3434
"simple-git": "^3.20.0",

packages/cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/cli",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"license": "MIT",
55
"description": "A CLI to run all kinds of code quality measurements to align your team with company goals",
66
"homepage": "https://code-pushup.dev",
@@ -45,9 +45,9 @@
4545
"node": ">=20"
4646
},
4747
"dependencies": {
48-
"@code-pushup/models": "0.92.0",
49-
"@code-pushup/core": "0.92.0",
50-
"@code-pushup/utils": "0.92.0",
48+
"@code-pushup/models": "0.92.1",
49+
"@code-pushup/core": "0.92.1",
50+
"@code-pushup/utils": "0.92.1",
5151
"yargs": "^17.7.2",
5252
"ansis": "^3.3.0",
5353
"simple-git": "^3.20.0"

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/core",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"license": "MIT",
55
"description": "Core business logic for the used by the Code PushUp CLI",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/core#readme",
@@ -39,8 +39,8 @@
3939
},
4040
"type": "module",
4141
"dependencies": {
42-
"@code-pushup/models": "0.92.0",
43-
"@code-pushup/utils": "0.92.0",
42+
"@code-pushup/models": "0.92.1",
43+
"@code-pushup/utils": "0.92.1",
4444
"ansis": "^3.3.0"
4545
},
4646
"peerDependencies": {

packages/create-cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/create-cli",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"license": "MIT",
55
"bin": "index.js",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/create-cli#readme",
@@ -26,8 +26,8 @@
2626
},
2727
"type": "module",
2828
"dependencies": {
29-
"@code-pushup/nx-plugin": "0.92.0",
30-
"@code-pushup/utils": "0.92.0"
29+
"@code-pushup/nx-plugin": "0.92.1",
30+
"@code-pushup/utils": "0.92.1"
3131
},
3232
"files": [
3333
"src",

packages/models/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/models",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"license": "MIT",
55
"description": "Model definitions and validators for the Code PushUp CLI",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/models#readme",

packages/nx-plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/nx-plugin",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"license": "MIT",
55
"description": "Nx plugin to integrate the Code PushUp CLI into your workspace 🛠️",
66
"publishConfig": {
@@ -32,8 +32,8 @@
3232
"generators": "./generators.json",
3333
"executors": "./executors.json",
3434
"dependencies": {
35-
"@code-pushup/models": "0.92.0",
36-
"@code-pushup/utils": "0.92.0",
35+
"@code-pushup/models": "0.92.1",
36+
"@code-pushup/utils": "0.92.1",
3737
"@nx/devkit": ">=17.0.0",
3838
"nx": ">=17.0.0"
3939
},

packages/plugin-axe/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/axe-plugin",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"license": "MIT",
55
"description": "Code PushUp plugin for detecting accessibility issues using Axe 🌐",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/plugin-axe#readme",
@@ -42,8 +42,8 @@
4242
"type": "module",
4343
"dependencies": {
4444
"@axe-core/playwright": "^4.11.0",
45-
"@code-pushup/models": "0.92.0",
46-
"@code-pushup/utils": "0.92.0",
45+
"@code-pushup/models": "0.92.1",
46+
"@code-pushup/utils": "0.92.1",
4747
"axe-core": "^4.11.0",
4848
"playwright-core": "^1.56.1",
4949
"zod": "^4.1.12"

packages/plugin-coverage/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-pushup/coverage-plugin",
3-
"version": "0.92.0",
3+
"version": "0.92.1",
44
"description": "Code PushUp plugin for tracking code coverage ☂",
55
"license": "MIT",
66
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/plugin-coverage#readme",
@@ -34,8 +34,8 @@
3434
},
3535
"type": "module",
3636
"dependencies": {
37-
"@code-pushup/models": "0.92.0",
38-
"@code-pushup/utils": "0.92.0",
37+
"@code-pushup/models": "0.92.1",
38+
"@code-pushup/utils": "0.92.1",
3939
"parse-lcov": "^1.0.4",
4040
"yargs": "^17.7.2",
4141
"zod": "^4.0.5"

0 commit comments

Comments
 (0)