-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathcode-pushup.config.ts
39 lines (36 loc) · 1.02 KB
/
code-pushup.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import coveragePlugin, {
CoveragePluginConfig,
} from '@code-pushup/coverage-plugin';
import eslintPlugin, {
eslintConfigFromNxProjects,
} from '@code-pushup/eslint-plugin';
import type { CoreConfig } from '@code-pushup/models';
import { glob } from 'glob';
const coverageConfig: CoveragePluginConfig = {
reports: glob.sync('coverage/**/lcov.info').map((resultsPath) => ({
resultsPath,
})),
// coverageToolCommand: {
// command: 'NODE_OPTIONS=--experimental-vm-modules npx',
// args: ['nx', 'run', 'tickets:test'],
// },
};
const config: CoreConfig = {
plugins: [
await eslintPlugin(await eslintConfigFromNxProjects()),
await coveragePlugin(coverageConfig),
],
persist: {
outputDir: '.code-pushup',
format: ['json', 'md'],
},
upload: {
server:
process.env.CODE_PUSHUP_API_URL ??
'https://api.staging.code-pushup.dev/graphql',
apiKey: process.env.CODE_PUSHUP_API_KEY ?? '',
organization: 'code-pushup',
project: 'ticketing',
},
};
export default config;