Skip to content

Commit

Permalink
Merge pull request #582 from olleolleolle/patch-1
Browse files Browse the repository at this point in the history
CI: ruby/setup-ruby with cache
  • Loading branch information
radar committed Dec 13, 2021
2 parents 3ae91d3 + 8f414a4 commit dbee3d8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ruby.yml
Expand Up @@ -12,10 +12,12 @@ on:

jobs:
build:
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby_version: [3.0, 2.7, 2.6, 2.5, 2.4, 2.3, jruby]
ruby_version: ["3.0", 2.7, 2.6, 2.5, 2.4, 2.3, jruby]
gemfile:
[
Gemfile,
Expand Down Expand Up @@ -69,13 +71,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: eregon/use-ruby-action@master
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true # 'bundle install' and cache
- name: Build and test with Rake
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
run: bundle exec rake

0 comments on commit dbee3d8

Please sign in to comment.