platanus / potassium

A Rails application generator by Platanus, inspired by Suspenders
MIT License
232 stars 17 forks source link

fix(ci): correctly use cache for bundle dependencies #244

Closed rjherrera closed 4 years ago

rjherrera commented 4 years ago

This PR fixes the usage of cache in the ci build. Even though cache was saved and restored, paths weren't correctly assigned.

That's because bundle install automatically saves dependencies under the default path defined via environment variables, in this case /usr/local/bundle. Changing it to vendor/bundle is the recommended way (bundle install --path vendor/bundle) but it breaks every test.

I also renamed cache keys/paths and added flags to bundle install to improve efficiency.