Skip to content

Commit 1d0cf7f

Browse files
authored
Enable bundler cache in GitHub Actions (#450)
Use ruby/setup-ruby's bundler-cache option to cache installed gems keyed by Gemfile.lock, reducing CI time spent on bundle install. The option runs bundle install automatically, so the explicit Bundle install step was removed.
1 parent c824bb8 commit 1d0cf7f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333
uses: ruby/setup-ruby@v1
3434
with:
3535
ruby-version: ${{ matrix.ruby }}
36-
- name: Bundle install
37-
run: |
38-
bundle install
36+
bundler-cache: true
3937
- name: Run the test suite
4038
run: |
4139
bundle exec rake TESTOPT=-v RUBYOPT="${{ matrix.rubyopt }}"

0 commit comments

Comments
 (0)