Skip to content

Commit

Permalink
Add ActiveSupport versions into the test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Sep 26, 2024
1 parent 4f741e4 commit d52c72f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
rails-version:
- '6.1'
- '7.0'
env:
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ source "https://rubygems.org"

# Specify your gem's dependencies in manageiq-loggers.gemspec
gemspec

minimum_version =
case ENV['TEST_RAILS_VERSION']
when "6.1"
"~>6.1.7"
else
"~>7.0.8"
end

gem "activesupport", minimum_version
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
config.filter_run_excluding(:linux => true)
end
end

require "active_support"
puts
puts "\e[93mUsing ActiveSupport #{ActiveSupport.version}\e[0m"

0 comments on commit d52c72f

Please sign in to comment.