Skip to content

Commit

Permalink
Use the automatic bundling and caching of the setup-ruby action
Browse files Browse the repository at this point in the history
This switches CI to use the automatic `bundle install` and caching
functionality provided by the setup-ruby action:
https://github.com/ruby/setup-ruby#caching-bundle-install-automatically
  • Loading branch information
thatbudakguy committed Mar 30, 2023
1 parent e7fd211 commit 494e902
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
- name: Set up Ruby and install dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies
run: bundle install
bundler-cache: true
- name: Run linter
run: bundle exec rubocop

Expand All @@ -28,16 +27,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Ruby
- name: Set up Ruby and install dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Install bundler
run: gem install bundler -v 2.1.1

- name: Install dependencies
run: bundle _2.1.1_ install
bundler-cache: true
env:
FARADAY_VERSION: ${{ matrix.faraday_version }}

Expand Down

0 comments on commit 494e902

Please sign in to comment.