Skip to content

Commit

Permalink
Test on different Rails versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarraz committed May 6, 2024
1 parent 75b5390 commit 9e00434
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion zhong.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9e00434

Please sign in to comment.