Skip to content

Commit 52d0309

Browse files
committed
Merge branch 'main' into cp-targets
# Conflicts: # packages/plugin-eslint/src/lib/config.ts
2 parents 1c61157 + 823ade1 commit 52d0309

File tree

116 files changed

+3378
-1920
lines changed

Some content is hidden

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

116 files changed

+3378
-1920
lines changed

.github/workflows/pr-labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
name: Add PR labels
1010
runs-on: ubuntu-latest
1111
permissions:
12+
contents: read
1213
pull-requests: write
14+
issues: write
1315
steps:
1416
- name: Checkout the repository
1517
uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## 0.71.0 (2025-08-01)
2+
3+
### 🚀 Features
4+
5+
- **ci:** download report from graphql api and convert to report.json format ([d35cd7a0](https://github.com/code-pushup/cli/commit/d35cd7a0))
6+
- **ci:** parse upload along with persist in print-config commands ([a73bf21b](https://github.com/code-pushup/cli/commit/a73bf21b))
7+
- **ci:** download previous report from portal if available ([918eb0d5](https://github.com/code-pushup/cli/commit/918eb0d5))
8+
- **utils:** add type helpers for lower/upper case conversions ([50483748](https://github.com/code-pushup/cli/commit/50483748))
9+
10+
### ❤️ Thank You
11+
12+
- Matěj Chalk
13+
14+
## 0.70.0 (2025-07-31)
15+
16+
### 🚀 Features
17+
18+
- **ci:** update to zod v4 ([c342dab1](https://github.com/code-pushup/cli/commit/c342dab1))
19+
- **ci:** remove redundant --no-progress argument ([b0ed2fa9](https://github.com/code-pushup/cli/commit/b0ed2fa9))
20+
- **ci:** skip persist.format args if defaults already configured ([c11db95e](https://github.com/code-pushup/cli/commit/c11db95e))
21+
- **cli:** disable progress bar in CI environment ([ecd42c60](https://github.com/code-pushup/cli/commit/ecd42c60))
22+
- **models:** add generic artifact generation to enable caching ([#1023](https://github.com/code-pushup/cli/pull/1023))
23+
- **models:** update to zod v4 ([7985c239](https://github.com/code-pushup/cli/commit/7985c239))
24+
- **nx-plugin:** update to zod v4 ([91774182](https://github.com/code-pushup/cli/commit/91774182))
25+
- **plugin-coverage:** update to zod v4 ([a0814d31](https://github.com/code-pushup/cli/commit/a0814d31))
26+
- **plugin-eslint:** update zod to v4 ([4ef657f1](https://github.com/code-pushup/cli/commit/4ef657f1))
27+
- **plugin-js-packages:** update to zod v4 ([c24b7435](https://github.com/code-pushup/cli/commit/c24b7435))
28+
- **plugin-jsdocs:** update to zod v4 ([3444e8d3](https://github.com/code-pushup/cli/commit/3444e8d3))
29+
- **plugin-lighthouse:** implement multiple URL support ([f4db1368](https://github.com/code-pushup/cli/commit/f4db1368))
30+
- **plugin-typescript:** update to zod v4 ([6de416f4](https://github.com/code-pushup/cli/commit/6de416f4))
31+
- **utils:** update to zod v4, replace zod-validation-error with z.prettifyError ([b1364d7d](https://github.com/code-pushup/cli/commit/b1364d7d))
32+
- **utils:** parse boolean environment variables ([be08c188](https://github.com/code-pushup/cli/commit/be08c188))
33+
- **utils:** detect ci environment ([3430d31b](https://github.com/code-pushup/cli/commit/3430d31b))
34+
- **utils:** extract boolean value coercion to standalone function ([f76e4fb0](https://github.com/code-pushup/cli/commit/f76e4fb0))
35+
36+
### 🩹 Fixes
37+
38+
- **ci:** do not set --verbose by default ([ab39b050](https://github.com/code-pushup/cli/commit/ab39b050))
39+
- **cli:** adapt format schema check to zod v4 ([77a384b0](https://github.com/code-pushup/cli/commit/77a384b0))
40+
- **models:** use implementAsync for async z.function occurrences ([17931228](https://github.com/code-pushup/cli/commit/17931228))
41+
42+
### ❤️ Thank You
43+
44+
- Andrii Siuta
45+
- Hanna Skryl @hanna-skryl
46+
- Matěj Chalk
47+
148
## 0.69.5 (2025-07-11)
249

350
### 🩹 Fixes

e2e/ci-e2e/global-setup.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* eslint-disable functional/immutable-data */
2+
3+
const originalCI = process.env['CI'];
4+
5+
export function setup() {
6+
// package is expected to run in CI environment
7+
process.env['CI'] = 'true';
8+
}
9+
10+
export function teardown() {
11+
if (originalCI === undefined) {
12+
delete process.env['CI'];
13+
} else {
14+
process.env['CI'] = originalCI;
15+
}
16+
}

e2e/ci-e2e/tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"vitest.e2e.config.ts",
99
"tests/**/*.e2e.test.ts",
1010
"tests/**/*.d.ts",
11-
"mocks/**/*.ts"
11+
"mocks/**/*.ts",
12+
"global-setup.ts"
1213
]
1314
}

e2e/ci-e2e/vitest.e2e.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
},
1717
environment: 'node',
1818
include: ['tests/**/*.e2e.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
19+
globalSetup: './global-setup.ts',
1920
setupFiles: ['../../testing/test-setup/src/lib/reset.mocks.ts'],
2021
},
2122
});

e2e/cli-e2e/tests/__snapshots__/help.e2e.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Commands:
1919
2020
Global Options:
2121
--progress Show progress bar in stdout.
22-
[boolean] [default: true]
22+
[boolean] [default: false in CI environment, otherwise true]
2323
--verbose When true creates more verbose output. This is helpful w
2424
hen debugging. You may also set CP_VERBOSE env variable
2525
instead. [boolean] [default: false]

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ export default tseslint.config(
9393
],
9494
},
9595
},
96+
{
97+
files: ['**/*.type.test.ts'],
98+
rules: {
99+
'vitest/expect-expect': 'off',
100+
},
101+
},
96102
{
97103
files: ['**/*.json'],
98104
languageOptions: { parser: jsoncParser },

0 commit comments

Comments
 (0)