Use the --deployment flag for bundle install

`bundle install --deployment` should be used on CI environments - it sets additional options beyond the install path (ensures the Gemfile.lock is checked in, up to date, etc). https://bundler.io/v2.0/man/bundle-install.1.html#DEPLOYMENT-MODE
This commit is contained in:
Scott Jacobsen
2020-05-16 18:52:00 +02:00
committed by Benoit Daloze
parent d01e942f09
commit a1d280134e
+1 -3
View File
@@ -128,9 +128,7 @@ You can cache the installed gems with these two steps:
restore-keys: |
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
run: bundle install --deployment --jobs 4
```
When using a single OS, replace `${{ matrix.os }}` with the OS.