From a1d280134ec19b496809f80e6e4c68ea133058bb Mon Sep 17 00:00:00 2001 From: Scott Jacobsen Date: Fri, 1 May 2020 11:31:18 -0600 Subject: [PATCH] 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 --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 8c63afe..77ff191 100644 --- a/README.md +++ b/README.md @@ -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.