Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ruby 3.2 to the CI matrix #91

Merged
merged 3 commits into from
Dec 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Test on Rails ${{ matrix.rails_version }}
name: Test on Rails ${{ matrix.rails_version }} and Ruby ${{ matrix.ruby_version }}
strategy:
matrix:
include:
- rails_version: ~> 7.0.0
ruby_version: 3.2
- rails_version: ~> 7.0.0
ruby_version: 3.1
- rails_version: ~> 6.1.0
Expand All @@ -25,13 +27,13 @@ jobs:
ruby_version: 2.6
- rails_version: ~> 5.1.0
ruby_version: 2.5
container: docker://ruby:${{ matrix.ruby_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
steps:
- uses: actions/checkout@v3
- name: Build and test
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails_version }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Test
run: bundle exec rake
2 changes: 1 addition & 1 deletion discard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "activerecord", ">= 4.2", "< 8"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rake", ">= 10.0"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "database_cleaner", "~> 1.5"
spec.add_development_dependency "with_model", "~> 2.0"
Expand Down