Skip to content

Commit 2c97efd

Browse files
committed
ci: Use bundler-cache instead of manual Bundler install
Let ruby/setup-ruby manage Bundler and dependency installation. This avoids the manual Bundler install step and handles version differences more reliably.
1 parent fa9dcf5 commit 2c97efd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jobs:
3232
uses: ruby/setup-ruby@v1
3333
with:
3434
ruby-version: ${{ matrix.ruby }}
35-
- name: Install Bundler
36-
run: gem install bundler -v $(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1 | awk '{print $1}')
37-
- name: Install dependencies
38-
run: bundle install
35+
bundler-cache: true
3936
- name: Run tests
4037
run: bundle exec rake

0 commit comments

Comments
 (0)