Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for github actions caching #697

Open
hasezoey opened this issue Sep 25, 2022 · 3 comments
Open

Add documentation for github actions caching #697

hasezoey opened this issue Sep 25, 2022 · 3 comments
Labels
docs This issue/pr is about documentation

Comments

@hasezoey
Copy link
Collaborator

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

@hasezoey hasezoey added the docs This issue/pr is about documentation label Sep 25, 2022
@cefeboru
Copy link

cefeboru commented May 2, 2023

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?

@hasezoey
Copy link
Collaborator Author

hasezoey commented May 2, 2023

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:

- name: Load MongoDB binary cache
id: cache-mongodb-binaries
uses: actions/cache@v3
with:
path: ~/.cache/mongodb-binaries
key: ${{ matrix.node-version }}

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

@cefeboru
Copy link

cefeboru commented May 8, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue/pr is about documentation
Projects
None yet
Development

No branches or pull requests

2 participants