Skip to content

Commit a4a9f10

Browse files
committed
Merge branch 'main' into feat/utils/file-sink
# Conflicts: # testing/test-utils/src/lib/utils/perf-hooks.mock.ts
2 parents 67e004c + 270b474 commit a4a9f10

Some content is hidden

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

67 files changed

+2515
-837
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code Coverage
1+
name: Coverage
22

33
on:
44
push:
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix: ${{ fromJson(needs.list-packages.outputs.matrix) }}
38-
name: Collect code coverage
38+
name: Collect coverage
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout the repository

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
## 0.108.0 (2026-01-16)
2+
3+
### 🚀 Features
4+
5+
- add profiler class and measure API ([#1216](https://github.com/code-pushup/cli/pull/1216))
6+
7+
### ❤️ Thank You
8+
9+
- Michael Hladky @BioPhoton
10+
11+
## 0.107.0 (2026-01-16)
12+
13+
### 🚀 Features
14+
15+
- **plugin-axe:** add authentication support via setup script ([#1198](https://github.com/code-pushup/cli/pull/1198))
16+
17+
### ❤️ Thank You
18+
19+
- Hanna Skryl @hanna-skryl
20+
21+
## 0.106.0 (2026-01-15)
22+
23+
### 🚀 Features
24+
25+
- multi-URL aware helpers for cross-plugin composition ([6bfad3ce](https://github.com/code-pushup/cli/commit/6bfad3ce))
26+
27+
### ❤️ Thank You
28+
29+
- hanna-skryl
30+
131
## 0.105.0 (2026-01-14)
232

333
### 🚀 Features

code-pushup.preset.ts

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/* eslint-disable @nx/enforce-module-boundaries */
22
import { createProjectGraphAsync } from '@nx/devkit';
3-
import type {
4-
CategoryConfig,
5-
CoreConfig,
6-
PluginUrls,
7-
} from './packages/models/src/index.js';
8-
import axePlugin, { axeCategories } from './packages/plugin-axe/src/index.js';
3+
import type { CoreConfig, PluginUrls } from './packages/models/src/index.js';
4+
import axePlugin, {
5+
type AxePluginOptions,
6+
axeGroupRefs,
7+
} from './packages/plugin-axe/src/index.js';
98
import coveragePlugin, {
109
type CoveragePluginConfig,
1110
getNxCoveragePaths,
@@ -16,8 +15,7 @@ import eslintPlugin, {
1615
import jsPackagesPlugin from './packages/plugin-js-packages/src/index.js';
1716
import jsDocsPlugin from './packages/plugin-jsdocs/src/index.js';
1817
import {
19-
lighthouseCategories,
20-
lighthouseGroupRef,
18+
lighthouseGroupRefs,
2119
lighthousePlugin,
2220
} from './packages/plugin-lighthouse/src/index.js';
2321
import typescriptPlugin, {
@@ -195,38 +193,46 @@ export async function configureLighthousePlugin(
195193
urls: PluginUrls,
196194
): Promise<CoreConfig> {
197195
const lhPlugin = await lighthousePlugin(urls);
198-
const lhCategories: CategoryConfig[] = [
199-
{
200-
slug: 'performance',
201-
title: 'Performance',
202-
refs: [lighthouseGroupRef('performance')],
203-
},
204-
{
205-
slug: 'a11y',
206-
title: 'Accessibility',
207-
refs: [lighthouseGroupRef('accessibility')],
208-
},
209-
{
210-
slug: 'best-practices',
211-
title: 'Best Practices',
212-
refs: [lighthouseGroupRef('best-practices')],
213-
},
214-
{
215-
slug: 'seo',
216-
title: 'SEO',
217-
refs: [lighthouseGroupRef('seo')],
218-
},
219-
];
220196
return {
221197
plugins: [lhPlugin],
222-
categories: lighthouseCategories(lhPlugin, lhCategories),
198+
categories: [
199+
{
200+
slug: 'performance',
201+
title: 'Performance',
202+
refs: lighthouseGroupRefs(lhPlugin, 'performance'),
203+
},
204+
{
205+
slug: 'a11y',
206+
title: 'Accessibility',
207+
refs: lighthouseGroupRefs(lhPlugin, 'accessibility'),
208+
},
209+
{
210+
slug: 'best-practices',
211+
title: 'Best Practices',
212+
refs: lighthouseGroupRefs(lhPlugin, 'best-practices'),
213+
},
214+
{
215+
slug: 'seo',
216+
title: 'SEO',
217+
refs: lighthouseGroupRefs(lhPlugin, 'seo'),
218+
},
219+
],
223220
};
224221
}
225222

226-
export function configureAxePlugin(urls: PluginUrls): CoreConfig {
227-
const axe = axePlugin(urls);
223+
export function configureAxePlugin(
224+
urls: PluginUrls,
225+
options?: AxePluginOptions,
226+
): CoreConfig {
227+
const axe = axePlugin(urls, options);
228228
return {
229229
plugins: [axe],
230-
categories: axeCategories(axe),
230+
categories: [
231+
{
232+
slug: 'axe-a11y',
233+
title: 'Axe Accessibility',
234+
refs: axeGroupRefs(axe),
235+
},
236+
],
231237
};
232238
}

e2e/plugin-axe-e2e/mocks/fixtures/default-setup/code-pushup.config.ts renamed to e2e/plugin-axe-e2e/mocks/fixtures/code-pushup.config.ts

File renamed without changes.
File renamed without changes.

e2e/plugin-axe-e2e/tests/collect.e2e.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@ import { nxTargetProject } from '@code-pushup/test-nx-utils';
77
import {
88
E2E_ENVIRONMENTS_DIR,
99
TEST_OUTPUT_DIR,
10+
restoreNxIgnoredFiles,
1011
teardownTestFolder,
1112
} from '@code-pushup/test-utils';
1213
import { executeProcess, readJsonFile } from '@code-pushup/utils';
1314

1415
describe('PLUGIN collect report with axe-plugin NPM package', () => {
16+
const fixturesDir = path.join('e2e', nxTargetProject(), 'mocks', 'fixtures');
1517
const testFileDir = path.join(
1618
E2E_ENVIRONMENTS_DIR,
1719
nxTargetProject(),
1820
TEST_OUTPUT_DIR,
1921
'collect',
2022
);
21-
const defaultSetupDir = path.join(testFileDir, 'default-setup');
22-
const fixturesDir = path.join('e2e', nxTargetProject(), 'mocks', 'fixtures');
2323

2424
beforeAll(async () => {
2525
await cp(fixturesDir, testFileDir, { recursive: true });
26+
await restoreNxIgnoredFiles(testFileDir);
2627
});
2728

2829
afterAll(async () => {
@@ -33,13 +34,13 @@ describe('PLUGIN collect report with axe-plugin NPM package', () => {
3334
const { code } = await executeProcess({
3435
command: 'npx',
3536
args: ['@code-pushup/cli', 'collect'],
36-
cwd: defaultSetupDir,
37+
cwd: testFileDir,
3738
});
3839

3940
expect(code).toBe(0);
4041

41-
const report: Report = await readJsonFile(
42-
path.join(defaultSetupDir, '.code-pushup', 'report.json'),
42+
const report = await readJsonFile<Report>(
43+
path.join(testFileDir, '.code-pushup', 'report.json'),
4344
);
4445

4546
expect(() => reportSchema.parse(report)).not.toThrow();

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"wrap-ansi": "^9.0.2",
4646
"yaml": "^2.5.1",
4747
"yargs": "^17.7.2",
48-
"zod": "^4.0.5"
48+
"zod": "^4.2.1"
4949
},
5050
"devDependencies": {
5151
"@actions/core": "^1.11.1",

packages/ci/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/ci",
3-
"version": "0.105.0",
3+
"version": "0.108.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,14 +26,14 @@
2626
},
2727
"type": "module",
2828
"dependencies": {
29-
"@code-pushup/models": "0.105.0",
29+
"@code-pushup/models": "0.108.0",
3030
"@code-pushup/portal-client": "^0.16.0",
31-
"@code-pushup/utils": "0.105.0",
31+
"@code-pushup/utils": "0.108.0",
3232
"ansis": "^3.3.2",
3333
"glob": "^11.0.1",
3434
"simple-git": "^3.20.0",
3535
"yaml": "^2.5.1",
36-
"zod": "^4.0.5"
36+
"zod": "^4.2.1"
3737
},
3838
"files": [
3939
"src",

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.105.0",
3+
"version": "0.108.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.105.0",
49-
"@code-pushup/core": "0.105.0",
50-
"@code-pushup/utils": "0.105.0",
48+
"@code-pushup/models": "0.108.0",
49+
"@code-pushup/core": "0.108.0",
50+
"@code-pushup/utils": "0.108.0",
5151
"yargs": "^17.7.2",
5252
"ansis": "^3.3.0",
5353
"simple-git": "^3.20.0"

0 commit comments

Comments
 (0)