This commit is contained in:
nuno maduro
2026-05-01 21:50:52 +01:00
parent aa3a7c303a
commit 3bcabfb63b

View File

@ -103,7 +103,7 @@ final readonly class BaselineSync
$this->renderBadge('INFO', sprintf( $this->renderBadge('INFO', sprintf(
'Baseline ready (%s).', 'Baseline ready (%s).',
$this->formatSize(strlen($payload['graph']) + strlen($payload['coverage'] ?? '')), $this->formatSize($payload['sizeOnDisk']),
)); ));
return true; return true;
@ -538,7 +538,7 @@ YAML;
} }
/** /**
* @return array{graph: string, coverage: ?string}|null * @return array{graph: string, coverage: ?string, sizeOnDisk: int}|null
*/ */
private function readArtifact(string $dir): ?array private function readArtifact(string $dir): ?array
{ {
@ -556,6 +556,7 @@ YAML;
return [ return [
'graph' => $graph, 'graph' => $graph,
'coverage' => $coverage === false ? null : $coverage, 'coverage' => $coverage === false ? null : $coverage,
'sizeOnDisk' => $this->dirSize($dir),
]; ];
} }