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

ci: properly cache results of prisma generate #822

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Conversation

tsa96
Copy link
Member

@tsa96 tsa96 commented Aug 15, 2023

Sorry, should've tested the first PR more. I've tested this one on Afranche's PR branch. Turns out this was way harder than I anticipated!

You can't update a cache once it's made, so sharing the Prisma between jobs is quite annoying. My solution is to use two caches: one for the original node_modules, another for node_modules + the Prisma client.

You can't update a cache once it's made, so sharing the Prisma between jobs
is quite annoying. My solution is to use two caches: one for the original
node_modules, another for node_modules + the Prisma client.
@tsa96 tsa96 requested a review from Gocnak August 15, 2023 03:18
@tsa96 tsa96 merged commit cf90578 into main Aug 15, 2023
6 checks passed
@tsa96 tsa96 deleted the ci/prisma-generate-part-2 branch August 15, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants