@@ -50,15 +50,15 @@ function run(): void {
50
50
51
51
// For GitHub Action debugging
52
52
// eslint-disable-next-line no-console
53
- console . log ( `Parsed command line arguments: base=${ base } , head=${ head } , optional=${ optional } ` ) ;
53
+ console . error ( `Parsed command line arguments: base=${ base } , head=${ head } , optional=${ optional } ` ) ;
54
54
55
55
const testApplications = globSync ( '*/package.json' , {
56
56
cwd : `${ __dirname } /../test-applications` ,
57
57
} ) . map ( filePath => dirname ( filePath ) ) ;
58
58
59
- // For GitHub Action debugging
59
+ // For GitHub Action debugging (using stderr the 'matrix=...' output is not polluted)
60
60
// eslint-disable-next-line no-console
61
- console . log (
61
+ console . error (
62
62
`Discovered ${ testApplications . length } test applications${
63
63
testApplications . length > 0
64
64
? ` (sample: ${ JSON . stringify ( testApplications . slice ( 0 , 10 ) ) } ${ testApplications . length > 10 ? ' …' : '' } )`
@@ -166,7 +166,7 @@ function getAffectedTestApplications(
166
166
167
167
// For GitHub Action debugging
168
168
// eslint-disable-next-line no-console
169
- console . log ( ' Nx affected projects:' , JSON . stringify ( affectedProjects ) ) ;
169
+ console . error ( ` Nx affected projects: ${ JSON . stringify ( affectedProjects ) } ` ) ;
170
170
171
171
// If something in e2e tests themselves are changed, check if only test applications were changed
172
172
if ( affectedProjects . includes ( '@sentry-internal/e2e-tests' ) ) {
@@ -176,15 +176,15 @@ function getAffectedTestApplications(
176
176
// Shared code was changed, run all tests
177
177
if ( changedTestApps === false ) {
178
178
// eslint-disable-next-line no-console
179
- console . log ( 'Shared e2e code changed. Running all test applications.' ) ;
179
+ console . error ( 'Shared e2e code changed. Running all test applications.' ) ;
180
180
return testApplications ;
181
181
}
182
182
183
183
// Only test applications that were changed, run selectively
184
184
if ( changedTestApps . size > 0 ) {
185
185
const selected = testApplications . filter ( testApp => changedTestApps . has ( testApp ) ) ;
186
186
// eslint-disable-next-line no-console
187
- console . log (
187
+ console . error (
188
188
`Only changed test applications will run (${ selected . length } ): ${ JSON . stringify ( Array . from ( changedTestApps ) ) } ` ,
189
189
) ;
190
190
return selected ;
@@ -216,7 +216,7 @@ function getChangedTestApps(base: string, head?: string): false | Set<string> {
216
216
217
217
// For GitHub Action debugging
218
218
// eslint-disable-next-line no-console
219
- console . log ( `Changed files since ${ base } ${ head ? `..${ head } ` : '' } :` , JSON . stringify ( changedFiles ) ) ;
219
+ console . error ( `Changed files since ${ base } ${ head ? `..${ head } ` : '' } : ${ JSON . stringify ( changedFiles ) } ` ) ;
220
220
221
221
const changedTestApps : Set < string > = new Set ( ) ;
222
222
const testAppsPrefix = 'dev-packages/e2e-tests/test-applications/' ;
0 commit comments