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

chore: fix yarn caching on circle ci #10440

Merged
merged 3 commits into from
Aug 23, 2020
Merged

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Aug 23, 2020

Summary

Current one doesn't work due to looking for the wrong directory. Ideally we'd run yarn config get cacheFolder in order to get the directory rather than hard coding it, but I don't think that's possible.

Also make the cache be keyed only by checksum of the lockfile, not the branch name

Test plan

I'll push another commit removing the debugging and verify it's a cache hit instead of a miss

@SimenB
Copy link
Member Author

SimenB commented Aug 23, 2020

Yeah, worked

Before:
image

After:
image

@SimenB SimenB merged commit 7e5e27a into jestjs:master Aug 23, 2020
@SimenB SimenB deleted the circle-yarn-cache branch August 23, 2020 17:57
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants