diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d6c6ca9..ca4f282 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/Gemfile b/Gemfile index 3742bef..4e84467 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 22aabfc..99f9330 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -19,3 +19,7 @@ config.filter_run_excluding(:linux => true) end end + +require "active_support" +puts +puts "\e[93mUsing ActiveSupport #{ActiveSupport.version}\e[0m"