Skip to content

Commit 19b98b2

Browse files
committed
Use bundler-cache to bundle install and cache gems
The setup-ruby action makes it trivial to bundle install gems from a cache and updating the cache when the run completes. See https://github.com/ruby/setup-ruby for details
1 parent d9265ab commit 19b98b2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/rspec_tests.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ jobs:
3232
uses: ruby/setup-ruby@v1
3333
with:
3434
ruby-version: ${{ matrix.cfg.ruby }}
35-
36-
- name: Update rubygems and install gems
37-
run: |
38-
gem update --system --silent --no-document
39-
bundle config set without packaging documentation
40-
bundle install --jobs 4 --retry 3
35+
bundler-cache: true
4136

4237
- name: Run tests on Windows
4338
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)