-
Notifications
You must be signed in to change notification settings - Fork 71
Conversation
Adding cache for Gemfile
ci: Fixing cache keys
f9261a5
to
c9c9ec7
Compare
6ac94fc
to
f7657cd
Compare
223d401
to
e1b54ca
Compare
@@ -0,0 +1,280 @@ | |||
GEM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Gemfile.lock
was previously .gitignore
'd, but now we're committing it.
Rationale: CI is using the hash of the Gemfile to determine cache equivalency, and therefore when to save and restore
- run: | ||
name: Set up bundle gems | ||
command: | | ||
bundle check || bundle install --jobs=4 --retry=3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: The ||
bash operator here means that if bundle check
passes, we skip bundle install
. The check will pass when all available dependencies are already installed, which should happen when a cache is restored successfully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed/Approved. Please go ahead and merge this PR.
What
bundle
, based on hash ofGemfile.lock
Why
Refs