Skip to content

Commit

Permalink
Test against Active Model 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Nov 8, 2024
1 parent 6527767 commit db47c46
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
rubygems: latest
bundler-cache: true
- name: RuboCop
run: bundle exec rubocop
run: bundle exec rubocop -f github
10 changes: 9 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2', '3.3']
gemfile: [am_7.0, am_7.1, am_7.2]
gemfile: [am_7.0, am_7.1, am_7.2, am_8.0]
channel: [stable]

include:
Expand All @@ -35,13 +35,21 @@ jobs:
- ruby-version: 'head'
gemfile: am_7.2
channel: experimental
- ruby-version: 'head'
gemfile: am_8.0
channel: experimental
- ruby-version: 'head'
gemfile: am_edge
channel: experimental

exclude:
- ruby-version: '3.0'
gemfile: am_7.2
- ruby-version: '3.0'
gemfile: am_8.0

- ruby-version: '3.1'
gemfile: am_8.0

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
Expand Down
6 changes: 5 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ appraise 'am-7.1' do
end

appraise 'am-7.2' do
gem 'activemodel', '~> 7.2.0.beta2'
gem 'activemodel', '~> 7.2.0'
end

appraise 'am-8.0' do
gem 'activemodel', '~> 8.0.0'
end

appraise 'am-edge' do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/am_7.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ gem "rubocop-performance", require: false
gem "rubocop-rails", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "activemodel", "~> 7.2.0.beta2"
gem "activemodel", "~> 7.2.0"

gemspec path: "../"
22 changes: 22 additions & 0 deletions gemfiles/am_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "bundler"
gem "byebug"
gem "pry"
gem "rake"
gem "rspec"
gem "simplecov"
gem "webmock"
gem "yard"
gem "rubocop", require: false
gem "rubocop-packaging", require: false
gem "rubocop-performance", require: false
gem "rubocop-rails", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "activemodel", "~> 8.0.0"

gemspec path: "../"

0 comments on commit db47c46

Please sign in to comment.