ci: using built-in caching from setup-node#1501
Conversation
|
The installation step (which now always runs) seems to take between 10-20 seconds when there's a cache hit, compared to being skipped entirely before. That seems like an OK trade-off to me to reduce the size & complexity of the workflows. |
If I'm understanding the above correctly (from the caching PR), the cache busting works the same as what we had before? |
|
Yes, it's actually slightly better in that they're putting the environment in the cache key as well. The main difference is that they're not surfacing whether or not there was a cache hit, so we can no longer skip steps based on that. Which they don't seem to think is a problem, and doesn't seem to add significant time to our builds from my testing. If anything it lets us combine a few of our "install" steps into one, which I've done here. |
|
Yeah, I agree the cleanup of the workflows is worth it, much nicer. We can keep an eye on things to see if the install times get worse over time, but ideally GitHub Actions gives us the ability to retrigger individual jobs. Then it matters even less, if I can retrigger the Sauce job and not all the others. |
|
🎉 This PR is included in version 1.152.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Now that this is built into the
setup-nodeaction, seems like we can save some code by using it. Not sure whether no longer skipping the NPM install step will make things super slow, but I'll test that out.