Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 11, 2024
1 parent 0f0676f commit 6060898
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/run-matrix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6060898

Please sign in to comment.