-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
proposal: Cache base run results to speed up tests #136
Comments
Sound good! Thank you for your idea! |
The POC is ready, but running into some issue with the cache service. |
This is actually super cool idea. |
Hello @FDiskas 👋, Yes, the idea is great, however, it is impossible to use Similar functionality could be achieved by using base-coverage-file option. You should manually collect coverage, and then restore it. |
fwiw and if it helps, when implementing my own action I did not run into problems caching test results (with key based on the commit sha) while similarily running a composite action: https://github.com/vgrafe/jest-reports/blob/main/src/getCoverageForSha.ts#L21. Apologies if I missed something out. |
Hello @vgrafe 👋, Thank you for the suggestion, I will try it out. |
We can use the @actions/cache package to cache the last baseRun report with the base commit hash as key.
So, we can run the action 2x faster for big repos having lots of tests.
The text was updated successfully, but these errors were encountered: