I broke cache restore in #335 😅 . The problem was that path /usr/local/bundle couldn't be written to, so restore cache failed and the job stoped.
Solution
This PR fixes it by changing bundle path. I was trying to use vendor/bundle but it had 2 problems:
It's a relative path, so when in the tests bin/potassium is run inside of tmp folder it wasn't finding it -> fixed by using absolute path
Bundle path was changed, but ruby still wasn't finding the gems. I tried setting GEM_HOMElike it was before, but it didn't work, not sure why -> fixed by setting GEM_PATH
Also, cache key was changed to avoid hits with previous flawed cache.
In the latest build you can see that restore cache and tests were performed succesfully.
Problem
I broke cache restore in #335 😅 . The problem was that path
/usr/local/bundle
couldn't be written to, so restore cache failed and the job stoped.Solution
This PR fixes it by changing bundle path. I was trying to use
vendor/bundle
but it had 2 problems:bin/potassium
is run inside oftmp
folder it wasn't finding it -> fixed by using absolute pathGEM_HOME
like it was before, but it didn't work, not sure why -> fixed by settingGEM_PATH
Also, cache key was changed to avoid hits with previous flawed cache.
In the latest build you can see that restore cache and tests were performed succesfully.