dcsil / dream-team

Team repository for Dream Team
https://dreamtune-cdf8a.web.app/auth/login
0 stars 1 forks source link

Add caching in CI for node_modules #137

Closed RyanMarten closed 4 years ago

RyanMarten commented 4 years ago

to save time installing

RyanMarten commented 4 years ago

https://medium.com/@rohanbagchi/how-to-setup-continuous-integration-for-your-firebase-app-cd183bb862e1

cache:
  paths:
    - node_modules/
  key: "$CI_BUILD_REPO"
jollyredflames commented 4 years ago

Perfect. This has been done right?

RyanMarten commented 4 years ago

@jollyredflames Not yet, going to implement and test it now.

RyanMarten commented 4 years ago

Here are some more links to review about this topic:

https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows

Specific about node.js: https://github.com/marketplace/actions/npm-or-yarn-install-with-caching

https://help.github.com/en/actions/language-and-framework-guides/using-nodejs-with-github-actions

RyanMarten commented 4 years ago

Ended up using this https://github.com/marketplace/actions/npm-or-yarn-install-with-caching

It makes it ~30 seconds faster (1min 50 --> 1min 30 about)