Skip to content

Build: improves Yarn installs caching on GH Actions and Circle CI#19966

Closed
larixer wants to merge 3 commits into
storybookjs:nextfrom
larixer:larixer/yarn-ci-cache
Closed

Build: improves Yarn installs caching on GH Actions and Circle CI#19966
larixer wants to merge 3 commits into
storybookjs:nextfrom
larixer:larixer/yarn-ci-cache

Conversation

@larixer
Copy link
Copy Markdown

@larixer larixer commented Nov 25, 2022

Issue:

What I did

I have enabled caching of Yarn installs on GitHub Actions and added node_modules caching on Circle CI

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@ndelangen ndelangen added the build Internal-facing build tooling & test updates label Nov 25, 2022
@ndelangen ndelangen self-assigned this Nov 25, 2022
Comment thread .github/workflows/tests-unit.yml Outdated
@larixer larixer force-pushed the larixer/yarn-ci-cache branch from 2c6c99e to 341cdd1 Compare November 25, 2022 18:29
@larixer larixer changed the title Build: improves disk space efficiency and performance of Yarn and caching installs on CI Build: improves Yarn installs caching on GH Actions and Circle CI Nov 26, 2022
@larixer larixer force-pushed the larixer/yarn-ci-cache branch 3 times, most recently from 188cff7 to 43e9e5a Compare November 26, 2022 09:31
@larixer larixer force-pushed the larixer/yarn-ci-cache branch from 43e9e5a to 2cb98a7 Compare November 26, 2022 09:38
@larixer
Copy link
Copy Markdown
Author

larixer commented Nov 26, 2022

I have tried different approaches, but was unable to make GitHub Actions runs on Windows and Mac OS X conclusively faster - they are the slowest platforms. It seems that using Yarn on these platforms without cache in GH Actions, as you do it now, is the best at the moment. This can be revisited in the future if considerable changes to GitHub Actions caching on these platforms will be made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Internal-facing build tooling & test updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants