mongodb-memory-server icon indicating copy to clipboard operation
mongodb-memory-server copied to clipboard

Add documentation for github actions caching

Open hasezoey opened this issue 3 years ago • 3 comments

Reminder Issue to add documentation to add a example on how to properly set-up github actions cache for MMS

hasezoey avatar Sep 25 '22 10:09 hasezoey

I'm seeing multiple errors on GitHub Actions, about being unable to find the binary - Sometimes it passes, others it won't. What would be the proper way to cache it?

cefeboru avatar May 02 '23 18:05 cefeboru

i intend to add a proper guide with the following options and not just for github-actions, but for now: caching in github actions is done easily:

https://github.com/nodkz/mongodb-memory-server/blob/a3b2254437b0ad86cdec679425609af833816ec5/.github/workflows/tests.yml#L35-L40

or also:

mongoose: https://github.com/Automattic/mongoose/blob/b864f622da5fa626980d8df4ed159a8ec8afb7a2/.github/workflows/test.yml#L67-L72

typegoose: https://github.com/typegoose/typegoose/blob/e8470f4b4621c579d26c70d0fb76a68fc3909042/.github/workflows/tests.yml#L30-L35

I'm seeing multiple errors on GitHub Actions, about being unable to find the binary

please open a issue / discussion or ask on our discord about setup / error help

hasezoey avatar May 02 '23 18:05 hasezoey

Thanks!

cefeboru avatar May 08 '23 15:05 cefeboru