@@ -6,6 +6,7 @@ import path from 'path';
6
6
7
7
const TAR_NAME = 'openai.tgz' ;
8
8
const PACK_FILE = `.pack/${ TAR_NAME } ` ;
9
+ const IS_CI = Boolean ( process . env [ 'CI' ] && process . env [ 'CI' ] !== 'false' ) ;
9
10
10
11
async function defaultNodeRunner ( ) {
11
12
await installPackage ( ) ;
@@ -249,10 +250,11 @@ async function main() {
249
250
runningProjects . delete ( project ) ;
250
251
}
251
252
252
- for ( const { dest , data } of chunks ) {
253
- if ( dest === 'stdout' ) process . stdout . write ( data ) ;
254
- else process . stderr . write ( data ) ;
253
+ if ( IS_CI ) console . log ( `::group:: ${ failed . includes ( project ) ? '❌' : '✅' } ${ project } ` ) ;
254
+ for ( const { data } of chunks ) {
255
+ process . stdout . write ( data ) ;
255
256
}
257
+ if ( IS_CI ) console . log ( '::endgroup::' ) ;
256
258
}
257
259
} ) ,
258
260
) ;
@@ -271,15 +273,15 @@ async function main() {
271
273
try {
272
274
await withRetry ( fn , project , state . retry ) ;
273
275
console . error ( '\n' ) ;
274
- console . error ( banner ( `✅ ${ project } ` ) ) ;
276
+ console . error ( `✅ ${ project } ` ) ;
275
277
} catch ( err ) {
276
278
if ( err && ( err as any ) . shortMessage ) {
277
279
console . error ( ( err as any ) . shortMessage ) ;
278
280
} else {
279
281
console . error ( err ) ;
280
282
}
281
283
console . error ( '\n' ) ;
282
- console . error ( banner ( `❌ ${ project } ` ) ) ;
284
+ console . error ( `❌ ${ project } ` ) ;
283
285
failed . push ( project ) ;
284
286
}
285
287
console . error ( '\n' ) ;
0 commit comments