Open
Description
All tests in the cli
test suite run fine on my laptop, but fail with an EACCESS
error code when launched from a GitHub workflow.
Here is the output of one of the failing tests:
# Subtest: cli
# Subtest: returns a help message when called with --help
not ok 1 - returns a help message when called with --help
---
duration_ms: 3.451251
location: 'file:///home/runner/work/zod-to-doc/zod-to-doc/test/cli.mjs:16:3'
failureType: 'testCodeFailure'
error: 'spawnSync /home/runner/work/zod-to-doc/zod-to-doc/dist/cli.js EACCES'
code: 'EACCES'
stack: |-
Object.spawnSync (node:internal/child_process:1124:20)
spawnSync (node:child_process:876:24)
execFileSync (node:child_process:[9](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:10)19:[15](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:16))
TestContext.<anonymous> (file:///home/runner/work/zod-to-doc/zod-to-doc/test/cli.mjs:20:[17](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:18))
Test.runInAsyncScope (node:async_hooks:[20](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:21)6:9)
Test.run (node:internal/test_runner/test:631:25)
Test.start (node:internal/test_runner/test:542:17)
node:internal/test_runner/test:946:71
node:internal/per_context/primordials:487:82
new Promise (<anonymous>)
I think this issue is related to the GitHub-hosted runner used in the GitHub Workflow. See here for details: