Skip to content

Commit

Permalink
use report file
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Sep 27, 2023
1 parent 2cbfdc8 commit 459b25c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/firehose/lib/src/health/health.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,20 @@ Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automati
from: currentPath,
);
print('Look for changes in $currentPath with base $basePackage');
var runApiTool = Process.runSync(
final runApiTool = Process.runSync(
'dart-apitool',
[
'diff',
...['--old', basePackage],
...['--new', '.'],
...['--report-format', 'json'],
...['--report-file-path', 'report.json'],
],
workingDirectory: currentPath,
);
print('runApiTool: err:${runApiTool.stderr}, out:${runApiTool.stdout}');
totalOut += runApiTool.stdout.toString();
final reportFile = File(path.join(currentPath, 'report.json'));
totalOut += reportFile.readAsStringSync();
}
return HealthCheckResult(
'breaking',
Expand Down

0 comments on commit 459b25c

Please sign in to comment.