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

Cleanup after tests #44

Closed cj81499 closed 4 years ago

cj81499 commented 4 years ago

The files and folders created while running tests were never being deleted.

This isn't a concern for ci, because the entire environment gets blown away after each run, but it is a concern for local test runs, since the runner folder quickly grows very large. We might want to change it to only clear before each run, so we can inspect what was written to disk while debugging.

Additionally, tests wrote tools and temp to separate random folders, like so:

Now, it will write them like so:

I don't think the random directory is needed at all now, since we're clearing between test case runs, but I can see a world where someone comments out the cleanup code so they can compare output between runs, so I left it.