({ core })
| 142 | } |
| 143 | |
| 144 | export async function compare({ core }) { |
| 145 | const [oldAssets, newAssets] = await Promise.all([ |
| 146 | readFile(process.env.BASE_STATS_PATH).then(f => JSON.parse(f)), |
| 147 | readFile(process.env.HEAD_STATS_PATH).then(f => JSON.parse(f)), |
| 148 | ]); |
| 149 | |
| 150 | const comment = reportDiff(oldAssets, newAssets); |
| 151 | core.setOutput('comment', comment); |
| 152 | } |
nothing calls this directly
no test coverage detected