From 9e004342d96c2bf5be4aab5aa25f2b4869d5b5dc Mon Sep 17 00:00:00 2001 From: Matt Larraz Date: Mon, 6 May 2024 18:22:49 -0400 Subject: [PATCH] Test on different Rails versions --- .github/workflows/CI.yml | 8 +++++++- Gemfile | 2 ++ zhong.gemspec | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9b4e199..2fba9bb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -17,14 +17,20 @@ jobs: - '3.2' - '3.3' - ruby-head + rails: + - '6.1' + - '7.0' + - '7.1' continue-on-error: ${{ matrix.ruby == 'ruby-head' }} services: redis: image: redis ports: - 6379:6379 + env: + RAILS_VERSION: ${{ matrix.rails }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} diff --git a/Gemfile b/Gemfile index 2c48460..0e16159 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,6 @@ source "https://rubygems.org" +gem "activesupport", "~> #{ENV.fetch('RAILS_VERSION', '7.0')}.0" + # Specify your gem's dependencies in zhong.gemspec gemspec diff --git a/zhong.gemspec b/zhong.gemspec index 855dd7b..82387f3 100644 --- a/zhong.gemspec +++ b/zhong.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.add_dependency "suo" spec.add_dependency "redis" spec.add_dependency "tzinfo" - spec.add_dependency "activesupport" + spec.add_dependency "activesupport", ">= 6.1" spec.add_development_dependency "bundler", "~> 2.2" spec.add_development_dependency "rake", "~> 13.0"