Skip to content

Commit f2d5882

Browse files
authored
treat links as an object not an array
1 parent e236244 commit f2d5882

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lighthouse-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
const formatResult = (res) => Math.round((res * 100));
5454
5555
console.log('Total manifests:', manifests.length);
56-
console.log('Total links:', links.length);
5756
console.log('Manifests:', JSON.stringify(manifests, null, 2));
57+
console.log('Links:', JSON.stringify(links, null, 2));
5858
5959
let comment = [
6060
'| Page | Performance | Accessibility | Best practices | SEO | PWA |',
6161
'| --- | --- | --- | --- | --- | --- |',
6262
];
63-
64-
links.forEach(link => {
63+
64+
Object.values(links).forEach(link => {
6565
const relevantManifests = manifests.filter(manifest => manifest.url === link);
6666
const results = relevantManifests.map(manifest => manifest.summary);
6767
const averagedResults = {};

0 commit comments

Comments
 (0)