mirror of
https://github.com/yt-dlp/ejs.git
synced 2026-06-13 00:32:11 +00:00
Use parallel testing in CI for deno
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -380,9 +380,11 @@ jobs:
|
|||||||
name: player-js
|
name: player-js
|
||||||
- name: Run Deno tests
|
- name: Run Deno tests
|
||||||
run: |
|
run: |
|
||||||
deno test \
|
xargs -n 1 -P 8 deno test \
|
||||||
--no-prompt \
|
--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:
|
bun_build:
|
||||||
name: Test Bun build
|
name: Test Bun build
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const io = await getIO();
|
|||||||
for (const test of tests) {
|
for (const test of tests) {
|
||||||
for (const variant of test.variants ?? players.keys()) {
|
for (const variant of test.variants ?? players.keys()) {
|
||||||
const path = getCachePath(test.player, variant);
|
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 content = await io.read(path);
|
||||||
const solvers = getFromPrepared(preprocessPlayer(content));
|
const solvers = getFromPrepared(preprocessPlayer(content));
|
||||||
for (const mode of ["n", "sig"] as const) {
|
for (const mode of ["n", "sig"] as const) {
|
||||||
|
|||||||
Reference in New Issue
Block a user