Skip to content

Commit 7239507

Browse files
committed
fix: propagate missing data
1 parent 8f01867 commit 7239507

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/index.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ const processResults = ({ data, errors }) => {
267267
module.exports = {
268268
onPostBuild: async ({ constants, utils, inputs } = {}) => {
269269
const { failBuild, show } = getUtils({ utils });
270-
let extraInfo = {};
270+
let extraInfo = [];
271271

272272
try {
273273
const { audits } = getConfiguration({
@@ -303,24 +303,23 @@ module.exports = {
303303

304304
if (Array.isArray(errors) && errors.length > 0) {
305305
allErrors.push({ path, url, errors });
306-
} else {
307-
data.push({
308-
path,
309-
url,
310-
summary,
311-
shortSummary,
312-
details,
313-
report,
314-
});
315306
}
307+
data.push({
308+
path,
309+
url,
310+
summary,
311+
shortSummary,
312+
details,
313+
report,
314+
});
316315
}
317316

318317
const { error, summary, extraData } = processResults({
319318
data,
320319
errors: allErrors,
321320
show,
322321
});
323-
extraInfo = extraData;
322+
extraInfo.push(...extraData);
324323

325324
if (error && Object.keys(error).length !== 0) {
326325
throw error;

0 commit comments

Comments
 (0)