Skip to content

Commit

Permalink
ci: switch to setup-ruby for installing bundle gems (todogroup#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro authored Apr 14, 2021
1 parent 8b0b68e commit b7bbeef
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'

- name: Cache Ruby Gems
if: ${{ runner.os != 'Windows' }}
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install Ruby Dependencies
if: ${{ runner.os != 'Windows' }}
run: |
gem install --no-document bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Run Test
if: ${{ runner.os != 'Windows' }}
Expand Down

0 comments on commit b7bbeef

Please sign in to comment.