Skip to content

Commit 8835abe

Browse files
committed
Don't output summary file in CI
1 parent 1f50bf2 commit 8835abe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bin/benchmark/run.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,13 @@ export async function runBenchmark({ force = false, reuse = false } = {}) {
182182
const output = await run('node', args, { cwd: EXPERIMENT_DIRS.app });
183183
const msgFile = join(BENCH_ROOT, 'msg.txt');
184184

185-
await writeFile(
186-
msgFile,
187-
output.stdout.split('Benchmark Results Summary').pop() ?? output.stdout,
188-
'utf8'
189-
);
185+
if (!process.env.CI) {
186+
await writeFile(
187+
msgFile,
188+
output.stdout.split('Benchmark Results Summary').pop() ?? output.stdout,
189+
'utf8'
190+
);
191+
}
190192

191193
return {
192194
benchRoot: BENCH_ROOT,

0 commit comments

Comments
 (0)