From c7098d610b7ba5e2f868eac4d9425889095a5611 Mon Sep 17 00:00:00 2001 From: Santiago Bartesaghi Date: Wed, 25 Oct 2023 21:15:53 -0300 Subject: [PATCH] ci: improve ActiveSupport testing (#633) --- .github/workflows/build.yml | 24 +++++++++++++++-- Appraisals | 26 +++++++++++++++++-- ...ctive_support_6_redis_cache_store.gemfile} | 0 ...upport_6_redis_cache_store_pooled.gemfile} | 0 ...tive_support_7_0_redis_cache_store.gemfile | 13 ++++++++++ ...pport_7_0_redis_cache_store_pooled.gemfile | 14 ++++++++++ ...tive_support_7_1_redis_cache_store.gemfile | 13 ++++++++++ ...pport_7_1_redis_cache_store_pooled.gemfile | 14 ++++++++++ 8 files changed, 100 insertions(+), 4 deletions(-) rename gemfiles/{active_support_redis_cache_store.gemfile => active_support_6_redis_cache_store.gemfile} (100%) rename gemfiles/{active_support_redis_cache_store_pooled.gemfile => active_support_6_redis_cache_store_pooled.gemfile} (100%) create mode 100644 gemfiles/active_support_7_0_redis_cache_store.gemfile create mode 100644 gemfiles/active_support_7_0_redis_cache_store_pooled.gemfile create mode 100644 gemfiles/active_support_7_1_redis_cache_store.gemfile create mode 100644 gemfiles/active_support_7_1_redis_cache_store_pooled.gemfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ca20631..cc3200cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,8 +38,12 @@ jobs: - redis_5 - redis_4 - connection_pool_dalli - - active_support_redis_cache_store - - active_support_redis_cache_store_pooled + - active_support_7_1_redis_cache_store + - active_support_7_1_redis_cache_store_pooled + - active_support_7_0_redis_cache_store + - active_support_7_0_redis_cache_store_pooled + - active_support_6_redis_cache_store + - active_support_6_redis_cache_store_pooled - active_support_5_redis_cache_store - active_support_5_redis_cache_store_pooled - redis_store @@ -88,10 +92,26 @@ jobs: ruby: 2.6.10 - gemfile: rails_7_0 ruby: 2.5.8 + - gemfile: active_support_7_0_redis_cache_store + ruby: 2.5.8 + - gemfile: active_support_7_0_redis_cache_store + ruby: 2.6.10 + - gemfile: active_support_7_0_redis_cache_store_pooled + ruby: 2.5.8 + - gemfile: active_support_7_0_redis_cache_store_pooled + ruby: 2.6.10 - gemfile: rails_7_1 ruby: 2.6.10 - gemfile: rails_7_1 ruby: 2.5.8 + - gemfile: active_support_7_1_redis_cache_store + ruby: 2.5.8 + - gemfile: active_support_7_1_redis_cache_store + ruby: 2.6.10 + - gemfile: active_support_7_1_redis_cache_store_pooled + ruby: 2.5.8 + - gemfile: active_support_7_1_redis_cache_store_pooled + ruby: 2.6.10 env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: diff --git a/Appraisals b/Appraisals index 89062b53..185740dc 100644 --- a/Appraisals +++ b/Appraisals @@ -70,12 +70,34 @@ appraise "connection_pool_dalli" do gem "dalli", "~> 3.0" end -appraise "active_support_redis_cache_store" do +appraise "active_support_7-1_redis_cache_store" do + gem "activesupport", "~> 7.1.0" + gem "redis", "~> 5.0" +end + +appraise "active_support_7-1_redis_cache_store_pooled" do + gem "activesupport", "~> 7.1.0" + gem "connection_pool", "~> 2.2" + gem "redis", "~> 5.0" +end + +appraise "active_support_7-0_redis_cache_store" do + gem "activesupport", "~> 7.0.0" + gem "redis", "~> 5.0" +end + +appraise "active_support_7-0_redis_cache_store_pooled" do + gem "activesupport", "~> 7.0.0" + gem "connection_pool", "~> 2.2" + gem "redis", "~> 5.0" +end + +appraise "active_support_6_redis_cache_store" do gem "activesupport", "~> 6.1.0" gem "redis", "~> 5.0" end -appraise "active_support_redis_cache_store_pooled" do +appraise "active_support_6_redis_cache_store_pooled" do gem "activesupport", "~> 6.1.0" gem "connection_pool", "~> 2.2" gem "redis", "~> 5.0" diff --git a/gemfiles/active_support_redis_cache_store.gemfile b/gemfiles/active_support_6_redis_cache_store.gemfile similarity index 100% rename from gemfiles/active_support_redis_cache_store.gemfile rename to gemfiles/active_support_6_redis_cache_store.gemfile diff --git a/gemfiles/active_support_redis_cache_store_pooled.gemfile b/gemfiles/active_support_6_redis_cache_store_pooled.gemfile similarity index 100% rename from gemfiles/active_support_redis_cache_store_pooled.gemfile rename to gemfiles/active_support_6_redis_cache_store_pooled.gemfile diff --git a/gemfiles/active_support_7_0_redis_cache_store.gemfile b/gemfiles/active_support_7_0_redis_cache_store.gemfile new file mode 100644 index 00000000..a94cfe88 --- /dev/null +++ b/gemfiles/active_support_7_0_redis_cache_store.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 7.0.0" +gem "redis", "~> 5.0" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + +gemspec path: "../" diff --git a/gemfiles/active_support_7_0_redis_cache_store_pooled.gemfile b/gemfiles/active_support_7_0_redis_cache_store_pooled.gemfile new file mode 100644 index 00000000..bd2a6e71 --- /dev/null +++ b/gemfiles/active_support_7_0_redis_cache_store_pooled.gemfile @@ -0,0 +1,14 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 7.0.0" +gem "connection_pool", "~> 2.2" +gem "redis", "~> 5.0" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + +gemspec path: "../" diff --git a/gemfiles/active_support_7_1_redis_cache_store.gemfile b/gemfiles/active_support_7_1_redis_cache_store.gemfile new file mode 100644 index 00000000..a0602ba5 --- /dev/null +++ b/gemfiles/active_support_7_1_redis_cache_store.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 7.1.0" +gem "redis", "~> 5.0" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + +gemspec path: "../" diff --git a/gemfiles/active_support_7_1_redis_cache_store_pooled.gemfile b/gemfiles/active_support_7_1_redis_cache_store_pooled.gemfile new file mode 100644 index 00000000..ae2d6d96 --- /dev/null +++ b/gemfiles/active_support_7_1_redis_cache_store_pooled.gemfile @@ -0,0 +1,14 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 7.1.0" +gem "connection_pool", "~> 2.2" +gem "redis", "~> 5.0" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + +gemspec path: "../"