Skip to content

Commit 1a9b7a7

Browse files
author
David Cavazos
committed
use core.error
1 parent 405be42 commit 1a9b7a7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/custard-ci.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

tpu/createVM.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
'use strict';
1818

19+
const x = 'TODO: DELETE THIS'
20+
1921
async function main(tpuClient) {
2022
// [START tpu_vm_create]
2123
// Import the TPUClient

0 commit comments

Comments
 (0)