File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -84,21 +84,27 @@ jobs:
8484 console.log("No packages were affected, nothing to lint.")
8585 }
8686
87- let failed = false ;
87+ let failed = [] ;
8888 for (const path of affected) {
8989 try {
9090 execSync(cmd, {cwd: path});
9191 console.log(`✅ [${path}]: ${cmd}`);
9292 } catch (e) {
93- failed = true;
93+ failed.push(path)
9494 console.log(`❌ [${path}]: ${cmd} (status ${e.status})`);
9595 console.log('--- stdout ---');
9696 console.log(e.stdout.toString("utf8"));
9797 console.log('--- stderr ---');
9898 console.log(e.stderr.toString("utf8"));
99+ core.error(`Linting failed in ${path}: ${e.message}`);
99100 }
100101 }
101- if (failed) {
102+ console.log(`Passed: ${affected.length - failed.length}`)
103+ console.log(`Failed: ${failed.length}`)
104+ if (failed.length > 0) {
105+ for (const path of failed) {
106+ console.log(`- ❌ ${path}`)
107+ }
102108 process.exit(1)
103109 }
104110
Original file line number Diff line number Diff line change 1616
1717'use strict' ;
1818
19+ const x = 'TODO: DELETE THIS'
20+
1921async function main ( tpuClient ) {
2022 // [START tpu_vm_create]
2123 // Import the TPUClient
You can’t perform that action at this time.
0 commit comments