From 606089867c624396122c899533120580f024bd06 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 11 May 2024 21:26:47 +0200 Subject: [PATCH] chore: update ci --- test/run-matrix.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/run-matrix.mjs b/test/run-matrix.mjs index 31411f3..ab6d4a9 100644 --- a/test/run-matrix.mjs +++ b/test/run-matrix.mjs @@ -70,7 +70,11 @@ if (process.env.CI) { // TODO: send this to action output: https://github.com/vitejs/vite-benchmark/blob/fed7d313e66b95fd4bc288cde93d69b3dffdbec4/runner/src/cli.ts#L107-L113 console.log(messages.join('\n')) - if (records.slice(1).some(x => !x.import)) + if ( + records + .filter(x => (x.runtime === 'node' && x.loader !== 'native') || (x.runtime !== 'node' && x.loader === 'native')) + .some(x => !x.import) + ) process.exit(1) } else {