Skip to content

Commit

Permalink
Add Ruby 3.1 to the CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein committed Mar 2, 2022
1 parent 7c71915 commit 8d91638
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', 'truffleruby', 'jruby']
ruby-version: ['2.6', '2.7', '3.0', '3.1', 'truffleruby', 'jruby']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
source "https://rubygems.org"
gemspec

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1")
gem "net-imap", require: false
gem "net-pop", require: false
gem "net-smtp", require: false
end

gem "rake"

0 comments on commit 8d91638

Please sign in to comment.