From a3095891a96d9314b1eff357b2304b64479cf34c Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Sun, 8 Feb 2026 21:28:14 +0100 Subject: [PATCH] Use parallel testing in CI for deno --- .github/workflows/ci.yml | 6 ++++-- src/yt/solver/solvers.test.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fa7433..c0edceb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -380,9 +380,11 @@ jobs: name: player-js - name: Run Deno tests run: | - deno test \ + xargs -n 1 -P 8 deno test \ --no-prompt \ - --allow-read=src/yt/solver/test/players/ + --no-check \ + --allow-read=src/yt/solver/test/players/ \ + --filter <<<"$(printf -- ' %s \n' main tcc tce es5 es6 tv tv_es6 phone)" bun_build: name: Test Bun build diff --git a/src/yt/solver/solvers.test.ts b/src/yt/solver/solvers.test.ts index 70c3c33..7ed25f8 100644 --- a/src/yt/solver/solvers.test.ts +++ b/src/yt/solver/solvers.test.ts @@ -8,7 +8,7 @@ const io = await getIO(); for (const test of tests) { for (const variant of test.variants ?? players.keys()) { const path = getCachePath(test.player, variant); - await io.test(`${test.player} ${variant}`, async (assert, subtest) => { + await io.test(` ${test.player} ${variant} `, async (assert, subtest) => { const content = await io.read(path); const solvers = getFromPrepared(preprocessPlayer(content)); for (const mode of ["n", "sig"] as const) {