Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fullArtifact[file.path] = artifact;
}
await codechecks.saveValue(options.artifactName, fullArtifact);
if (!codechecks.isPr()) {
return;
}
const baseArtifact = await codechecks.getValue(options.artifactName);
const diff = getArtifactDiff(fullArtifact, baseArtifact);
const report = getReportFromDiff(diff, options.files, options);
await codechecks.report(report);
}
export default async function checkBenchmarks() {
const currentBenchmarks = await getBenchmarks();
await codechecks.saveValue(benchmarksKey, currentBenchmarks);
if (!codechecks.isPr()) {
return;
}
const baselineBenchmarks = await codechecks.getValue(
benchmarksKey,
);
const report = getCodechecksReport(currentBenchmarks, baselineBenchmarks);
await codechecks.report(report);
}