Skip to content

Commit

Permalink
chore: test ruby 3.3 and rails 7.1 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros authored Jan 22, 2024
1 parent a14d062 commit 3ae1274
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/engines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- gemfiles/active_model_6.0.gemfile
- gemfiles/active_model_6.1.gemfile
- gemfiles/active_model_7.0.gemfile
- gemfiles/active_model_edge.gemfile
- gemfiles/active_model_7.1.gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfiles }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2']
ruby-version: ['3.0', '3.1', '3.2', '3.3']
gemfiles:
- gemfiles/active_model_6.0.gemfile
- gemfiles/active_model_6.1.gemfile
- gemfiles/active_model_7.0.gemfile
- gemfiles/active_model_7.1.gemfile
- gemfiles/active_model_edge.gemfile
exclude:
- ruby-version: '3.0'
gemfiles: gemfiles/active_model_edge.gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfiles }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
gemfile: ${{ matrix.gemfiles }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ appraise 'active_model_7.0' do
gem 'activemodel', '~> 7.0.0'
end

appraise 'active_model_7.1' do
gem 'activemodel', '~> 7.1.0'
end

appraise 'active_model_edge' do
gem 'activemodel', github: 'rails/rails', branch: 'main'
end
11 changes: 11 additions & 0 deletions gemfiles/active_model_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activemodel", "~> 7.1.0"

platforms :mri do
gem "pry-byebug"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Minitest::Reporters.use! [Minitest::Reporters::ProgressReporter.new]
I18n.enforce_available_locales = true

class BaseTestCase < MiniTest::Test
class BaseTestCase < ActiveSupport::TestCase
protected
# Creates a new ActiveModel model (and the associated table)
def new_model(&block)
Expand Down

0 comments on commit 3ae1274

Please sign in to comment.