denolib / setup-deno

Set up your GitHub Actions workflow with a specific version of deno
https://github.com/marketplace/actions/setup-deno-environment
MIT License
181 stars 16 forks source link

"basic example" fails? #80

Closed tomchen closed 3 years ago

tomchen commented 3 years ago

Empty repo for testing: https://github.com/tomchen/github-action-deno-test/runs/1841938171

https://github.com/tomchen/github-action-deno-test/blob/main/.github/workflows/test.yml is almost a copy-and-paste of denolib/setup-deno's basic example https://github.com/denolib/setup-deno#usage , but it fails.

Check https://deno.land/std/examples/cat.ts
✅ Successfully installed deno_cat
/home/runner/.deno/bin/deno_cat
error: Uncaught (in promise) NotFound: No such file or directory (os error 2)
    throw new ErrorClass(res.err.message);
          ^
    at processResponse (deno:core/core.js:213:11)
    at Object.jsonOpAsync (deno:core/core.js:230:12)
    at async Object.open (deno:runtime/js/30_files.js:45:17)
    at async https://deno.land/std@0.86.0/examples/cat.ts:4:16
Error: Process completed with exit code 1.
tomchen commented 3 years ago

My bad. Because that empty repo for testing was set for #79 , I removed - uses: actions/checkout@v2 and didn't add README.md, so of course it fails here