Skip to content

Commit

Permalink
Test with Rails 6.0 -> 7.0
Browse files Browse the repository at this point in the history
Excludes Ruby 2.6 with Rails 7.0 because Rails 7 requires Ruby 2.7+
  • Loading branch information
HeyNonster committed Mar 21, 2023
1 parent b3a6781 commit 40c99c1
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- 2.6
- jruby
gemfile:
- Rails-7_0
- Rails-6_1
- Rails-6_0
- Rails-5_2
backend:
- sqlite3
Expand All @@ -33,6 +36,9 @@ jobs:
# Allow test failures for some configurations
- ruby: jruby
allow-failures: true
exclude:
- ruby: 2.6
gemfile: Rails-7_0

env:
# For Bundler control variables, refer to:
Expand Down
2 changes: 1 addition & 1 deletion activeid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ Gem::Specification.new do |s|
s.add_development_dependency "sqlite3", "~> 1.3"
end

s.add_runtime_dependency "activerecord", ">= 5.2", "< 6.0"
s.add_runtime_dependency "activerecord", ">= 5.2", "< 7.1"
s.add_runtime_dependency "uuidtools"
end
8 changes: 8 additions & 0 deletions gemfiles/Rails-6_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "http://rubygems.org"

gemspec path: "../"

gem "activerecord", "~> 6.0.0"

gem "codecov", require: false, group: :test
gem "simplecov", require: false, group: :test
8 changes: 8 additions & 0 deletions gemfiles/Rails-6_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "http://rubygems.org"

gemspec path: "../"

gem "activerecord", "~> 6.1.0"

gem "codecov", require: false, group: :test
gem "simplecov", require: false, group: :test
8 changes: 8 additions & 0 deletions gemfiles/Rails-7_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "http://rubygems.org"

gemspec path: "../"

gem "activerecord", "~> 7.0.0"

gem "codecov", require: false, group: :test
gem "simplecov", require: false, group: :test
99 changes: 99 additions & 0 deletions gemfiles/Rails-7_0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
PATH
remote: ..
specs:
activeid (0.6.1)
activerecord (>= 5.0, < 7.1)
uuidtools

GEM
remote: http://rubygems.org/
specs:
activemodel (7.0.4.3)
activesupport (= 7.0.4.3)
activerecord (7.0.4.3)
activemodel (= 7.0.4.3)
activesupport (= 7.0.4.3)
activesupport (7.0.4.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
codecov (0.2.12)
json
simplecov
coderay (1.1.3)
concurrent-ruby (1.2.2)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.1.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.5.0)
docile (1.4.0)
fabrication (2.30.0)
forgery (0.8.1)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
json (2.6.3)
method_source (1.0.0)
mini_portile2 (2.8.1)
minitest (5.18.0)
mysql2 (0.5.5)
pg (1.4.6)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
rake (13.0.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.1)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.12.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
solid_assert (1.1.0)
sqlite3 (1.6.1)
mini_portile2 (~> 2.8.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uuidtools (2.2.0)

PLATFORMS
ruby

DEPENDENCIES
activeid!
activerecord (~> 7.0.0)
activesupport
codecov
database_cleaner
fabrication
forgery
mysql2
pg
pry
rake
rspec (~> 3.5)
rspec-its
simplecov
solid_assert (~> 1.0)
sqlite3 (~> 1.3)

BUNDLED WITH
2.4.5

0 comments on commit 40c99c1

Please sign in to comment.