From 40c99c1daabd729dddbcd7a75182a0717256ea8a Mon Sep 17 00:00:00 2001 From: Nony Dutton Date: Tue, 21 Mar 2023 13:47:34 +0100 Subject: [PATCH] Test with Rails 6.0 -> 7.0 Excludes Ruby 2.6 with Rails 7.0 because Rails 7 requires Ruby 2.7+ --- .github/workflows/tests.yml | 6 ++ activeid.gemspec | 2 +- gemfiles/Rails-6_0.gemfile | 8 +++ gemfiles/Rails-6_1.gemfile | 8 +++ gemfiles/Rails-7_0.gemfile | 8 +++ gemfiles/Rails-7_0.gemfile.lock | 99 +++++++++++++++++++++++++++++++++ 6 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 gemfiles/Rails-6_0.gemfile create mode 100644 gemfiles/Rails-6_1.gemfile create mode 100644 gemfiles/Rails-7_0.gemfile create mode 100644 gemfiles/Rails-7_0.gemfile.lock diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cfc7ec9..8bcf061 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,6 +24,9 @@ jobs: - 2.6 - jruby gemfile: + - Rails-7_0 + - Rails-6_1 + - Rails-6_0 - Rails-5_2 backend: - sqlite3 @@ -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: diff --git a/activeid.gemspec b/activeid.gemspec index 2a855b8..3706f22 100644 --- a/activeid.gemspec +++ b/activeid.gemspec @@ -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 diff --git a/gemfiles/Rails-6_0.gemfile b/gemfiles/Rails-6_0.gemfile new file mode 100644 index 0000000..295150e --- /dev/null +++ b/gemfiles/Rails-6_0.gemfile @@ -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 diff --git a/gemfiles/Rails-6_1.gemfile b/gemfiles/Rails-6_1.gemfile new file mode 100644 index 0000000..2365bf7 --- /dev/null +++ b/gemfiles/Rails-6_1.gemfile @@ -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 diff --git a/gemfiles/Rails-7_0.gemfile b/gemfiles/Rails-7_0.gemfile new file mode 100644 index 0000000..b45d58c --- /dev/null +++ b/gemfiles/Rails-7_0.gemfile @@ -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 diff --git a/gemfiles/Rails-7_0.gemfile.lock b/gemfiles/Rails-7_0.gemfile.lock new file mode 100644 index 0000000..171f6e2 --- /dev/null +++ b/gemfiles/Rails-7_0.gemfile.lock @@ -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