Skip to content

Commit

Permalink
run tests from ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Dec 22, 2024
1 parent bb76049 commit 6c21cdd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ jobs:
- name: Run tests
run: node scripts/test.js -all

- name: Docstrins tests
if: runner.os == 'macOS'
env:
UV_THREADPOOL_SIZE: 8
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"

- name: Check for diffs in tests folder
run: git diff --ignore-cr-at-eol --exit-code tests

Expand Down
14 changes: 7 additions & 7 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ async function runTests() {
stdio: [0, 1, 2],
});
// Ignore some tests not supported by node v18
cp.execSync(
`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"`,
{
cwd: path.join(__dirname, ".."),
stdio: [0, 1, 2],
},
);
// cp.execSync(
// `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"`,
// {
// cwd: path.join(__dirname, ".."),
// stdio: [0, 1, 2],
// },
// );
}
}
}
Expand Down

0 comments on commit 6c21cdd

Please sign in to comment.