Use parallel testing in CI for deno

This commit is contained in:
Simon Sawicki
2026-02-08 21:28:14 +01:00
parent c51d14fa61
commit a3095891a9
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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) {