Skip to content

Commit a1d2801

Browse files
scottjacobseneregon
authored andcommitted
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
1 parent d01e942 commit a1d2801

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ You can cache the installed gems with these two steps:
128128
restore-keys: |
129129
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
130130
- name: bundle install
131-
run: |
132-
bundle config path vendor/bundle
133-
bundle install --jobs 4 --retry 3
131+
run: bundle install --deployment --jobs 4
134132
```
135133

136134
When using a single OS, replace `${{ matrix.os }}` with the OS.

0 commit comments

Comments
 (0)