File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
.github/actions/code-pushup/src Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 type SourceFileIssue ,
1111 runInCI ,
1212} from '@code-pushup/ci' ;
13+ import { DEFAULT_PERSIST_CONFIG } from '@code-pushup/models' ;
1314import {
1415 CODE_PUSHUP_UNICODE_LOGO ,
1516 logger ,
@@ -136,6 +137,20 @@ async function run(): Promise<void> {
136137
137138 const options : Options = {
138139 monorepo : true ,
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+ } ,
139154 } ;
140155
141156 const gitRefs = parseGitRefs ( ) ;
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ import typescriptPlugin, {
2828 getCategories ,
2929} from './packages/plugin-typescript/src/index.js' ;
3030
31- export function configureUpload ( projectName ? : string ) : CoreConfig {
31+ export function configureUpload ( projectName : string = 'workspace' ) : CoreConfig {
3232 return {
3333 ...( process . env [ 'CP_API_KEY' ] && {
3434 upload : {
3535 server : 'https://api.staging.code-pushup.dev/graphql' ,
3636 apiKey : process . env [ 'CP_API_KEY' ] ,
3737 organization : 'code-pushup' ,
38- project : projectName ? `cli-${ projectName } ` : 'cli-workspace' ,
38+ project : `cli-${ projectName } ` ,
3939 } ,
4040 } ) ,
4141 plugins : [ ] ,
Original file line number Diff line number Diff line change 11{
2- "name" : " cli- workspace" ,
2+ "name" : " workspace" ,
33 "$schema" : " node_modules/nx/schemas/project-schema.json" ,
44 "targets" : {
55 "code-pushup" : {
You can’t perform that action at this time.
0 commit comments