Closed Gekctek closed 1 year ago
Well...maybe not. Not sure whats going on here
This is what i get after I add sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
to the build process
mops test
Test files:
• test/Parser.test.mo
• test/Tokenizer.test.mo
--------------------------------------------------
Running test/Parser.test.mo
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn /home/runner/.cache/dfinity/versions/0.13.1/moc ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:28[5](https://github.com/edjCase/motoko_xml/actions/runs/4311120776/jobs/7520213734#step:7:6):19)
at onErrorNT (node:internal/child_process:485:1[6](https://github.com/edjCase/motoko_xml/actions/runs/4311120776/jobs/7520213734#step:7:7))
at processTicksAndRejections (node:internal/process/task_queues:[8](https://github.com/edjCase/motoko_xml/actions/runs/4311120776/jobs/7520213734#step:7:9)3:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:2[9](https://github.com/edjCase/motoko_xml/actions/runs/4311120776/jobs/7520213734#step:7:10)1:[12](https://github.com/edjCase/motoko_xml/actions/runs/4311120776/jobs/7520213734#step:7:13))
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn /home/runner/.cache/dfinity/versions/0.[13](https://github.com/edjCase/motoko_xml/actions/runs/4311120776/jobs/7520213734#step:7:14).1/moc',
path: '/home/runner/.cache/dfinity/versions/0.13.1/moc',
spawnargs: [
'-r',
'-wasi-system-api',
'-ref-system-api',
'--hide-warnings',
'--error-detail=2',
'--package',
'base',
'.mops/base@0.8.1/src',
'--package',
'xtended-numbers',
'.mops/xtended-numbers@0.2.0/src',
'--package',
'test',
'.mops/test@1.0.1/src',
'test/Parser.test.mo'
]
}
make: *** [Makefile:6: test] Error 1
Error: Process completed with exit code 2.
Yes, test
command depends on dfx
@Gekctek just added example of workflow to run mops test
command https://github.com/ZenVoich/mops/blob/master/.github/workflows/mops-test.yml
You can just copy/paste)
Awesome. TYSM
Just wondering if DFX is actually needed for running MOPS tests. Im trying to use it in my github actions and I get this error. Its fine if it is needed, just wanted to make sure