Skip to content

Commit 6c21cdd

Browse files
committed
run tests from ci.yml
1 parent bb76049 commit 6c21cdd

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ jobs:
326326
- name: Run tests
327327
run: node scripts/test.js -all
328328

329+
- name: Docstrins tests
330+
if: runner.os == 'macOS'
331+
env:
332+
UV_THREADPOOL_SIZE: 8
333+
run: node tests/docstrings_examples/DocTest.res.mjs --ignore-runtime-tests "Array.toReversed, Array.toSorted, Promise.withResolvers, Set.union, Set.isSupersetOf, Set.isSubsetOf, Set.isDisjointFrom, Set.intersection, Set.symmetricDifference, Set.difference"
334+
329335
- name: Check for diffs in tests folder
330336
run: git diff --ignore-cr-at-eol --exit-code tests
331337

scripts/test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ async function runTests() {
137137
stdio: [0, 1, 2],
138138
});
139139
// Ignore some tests not supported by node v18
140-
cp.execSync(
141-
`node ${path.join("tests", "docstrings_examples", "DocTest.res.mjs")} --ignore-runtime-tests "Array.toReversed, Array.toSorted, Promise.withResolvers, Set.union, Set.isSupersetOf, Set.isSubsetOf, Set.isDisjointFrom, Set.intersection, Set.symmetricDifference, Set.difference"`,
142-
{
143-
cwd: path.join(__dirname, ".."),
144-
stdio: [0, 1, 2],
145-
},
146-
);
140+
// cp.execSync(
141+
// `node ${path.join("tests", "docstrings_examples", "DocTest.res.mjs")} --ignore-runtime-tests "Array.toReversed, Array.toSorted, Promise.withResolvers, Set.union, Set.isSupersetOf, Set.isSubsetOf, Set.isDisjointFrom, Set.intersection, Set.symmetricDifference, Set.difference"`,
142+
// {
143+
// cwd: path.join(__dirname, ".."),
144+
// stdio: [0, 1, 2],
145+
// },
146+
// );
147147
}
148148
}
149149
}

0 commit comments

Comments
 (0)