Skip to content

Commit 3200adc

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/plugin-eslint/add-artifact-loading-logic
# Conflicts: # packages/plugin-eslint/package.json
2 parents 58bdc6f + 5db68e2 commit 3200adc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1185
-80
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
NX_NON_NATIVE_HASHER: true
11+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1112

1213
jobs:
1314
format:

.github/workflows/code-coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
env:
88
NX_NON_NATIVE_HASHER: true
9+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
910

1011
jobs:
1112
coverage:
@@ -35,7 +36,7 @@ jobs:
3536
- name: Install dependencies
3637
run: npm ci
3738
- name: Execute all tests and generate coverage reports
38-
run: npx nx run ${{ matrix.lib }}:${{ matrix.scope }}-test --coverage.enabled --skipNxCache
39+
run: npx nx run ${{ matrix.lib }}:${{ matrix.scope }}-test --coverage.enabled
3940
- name: Upload coverage reports to Codecov
4041
uses: codecov/codecov-action@v4
4142
with:

.github/workflows/code-pushup.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
NX_NON_NATIVE_HASHER: true
11+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1112

1213
permissions:
1314
pull-requests: write

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
env:
2222
NX_NON_NATIVE_HASHER: true
23+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
2324

2425
jobs:
2526
dry-run-release:

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## 0.75.0 (2025-08-22)
2+
3+
### 🚀 Features
4+
5+
- implement scoreTarget for categories ([44e49342](https://github.com/code-pushup/cli/commit/44e49342))
6+
- **nx-cloud:** setup nx cloud workspace ([47f14d3e](https://github.com/code-pushup/cli/commit/47f14d3e))
7+
8+
### 🩹 Fixes
9+
10+
- adjust targets ([77411f39](https://github.com/code-pushup/cli/commit/77411f39))
11+
- format ([a419aec9](https://github.com/code-pushup/cli/commit/a419aec9))
12+
- format files ([1a076910](https://github.com/code-pushup/cli/commit/1a076910))
13+
- **plugin-typescript:** include extended options ([ae7f2736](https://github.com/code-pushup/cli/commit/ae7f2736))
14+
- **plugin-typescript-e2e:** fix lint ([3b5aea6f](https://github.com/code-pushup/cli/commit/3b5aea6f))
15+
16+
### ❤️ Thank You
17+
18+
- Hanna Skryl @hanna-skryl
19+
- John Doe @simpleresume
20+
- Michael Hladky @rx-angular
21+
122
## 0.74.1 (2025-08-19)
223

324
### 🩹 Fixes

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,6 @@
143143
}
144144
}
145145
}
146-
]
146+
],
147+
"nxCloudId": "65d4d862d2adb16a45a4bc7c"
147148
}

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.74.1",
3+
"version": "0.75.0",
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.74.1",
29+
"@code-pushup/models": "0.75.0",
3030
"@code-pushup/portal-client": "^0.15.0",
31-
"@code-pushup/utils": "0.74.1",
31+
"@code-pushup/utils": "0.75.0",
3232
"glob": "^11.0.1",
3333
"simple-git": "^3.20.0",
3434
"yaml": "^2.5.1",

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.74.1",
3+
"version": "0.75.0",
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.74.1",
49-
"@code-pushup/core": "0.74.1",
50-
"@code-pushup/utils": "0.74.1",
48+
"@code-pushup/models": "0.75.0",
49+
"@code-pushup/core": "0.75.0",
50+
"@code-pushup/utils": "0.75.0",
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.74.1",
3+
"version": "0.75.0",
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.74.1",
43-
"@code-pushup/utils": "0.74.1",
42+
"@code-pushup/models": "0.75.0",
43+
"@code-pushup/utils": "0.75.0",
4444
"ansis": "^3.3.0"
4545
},
4646
"peerDependencies": {

packages/core/src/lib/implementation/execute-plugin.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
groupByStatus,
1515
logMultipleResults,
1616
pluralizeToken,
17+
scoreAuditsWithTarget,
1718
} from '@code-pushup/utils';
1819
import {
1920
executePluginRunner,
@@ -57,6 +58,7 @@ export async function executePlugin(
5758
description,
5859
docsUrl,
5960
groups,
61+
scoreTargets,
6062
...pluginMeta
6163
} = pluginConfig;
6264
const { write: cacheWrite = false, read: cacheRead = false } = cache;
@@ -76,8 +78,13 @@ export async function executePlugin(
7678
});
7779
}
7880

81+
// transform audit scores to 1 when they meet/exceed their targets
82+
const scoredAuditsWithTarget = scoreTargets
83+
? scoreAuditsWithTarget(audits, scoreTargets)
84+
: audits;
85+
7986
// enrich `AuditOutputs` to `AuditReport`
80-
const auditReports: AuditReport[] = audits.map(
87+
const auditReports: AuditReport[] = scoredAuditsWithTarget.map(
8188
(auditOutput: AuditOutput) => ({
8289
...auditOutput,
8390
...(pluginConfigAudits.find(

0 commit comments

Comments
 (0)