Skip to content

Commit

Permalink
Also test with rails 7, find all the broken things
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Jan 17, 2024
1 parent a4c58c3 commit 39107b0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- '2.7'
- '3.0'
- '3.1'
rails-version:
- '6.1'
- '7.0'
services:
postgres:
image: postgres:13
Expand All @@ -39,6 +42,7 @@ jobs:
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: password
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
# for the mysql cli (mysql, mysqladmin)
MYSQL_HOST: 127.0.0.1
MYSQL_PWD: password
Expand All @@ -64,7 +68,7 @@ jobs:
DB: mysql2
run: bundle exec rake
- name: Report code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }}
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '6.1' }}
continue-on-error: true
uses: paambaati/codeclimate-action@v5
env:
Expand Down
10 changes: 9 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

source "https://rubygems.org"

gem "activerecord", "~> 6.1.4"
minimum_version =
case ENV['TEST_RAILS_VERSION']
when "7.0"
"~>7.0.8"
else
"~>6.1.4"
end

gem "activerecord", minimum_version
gem "mysql2"
gem "pg"
gem "sqlite3"
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@
end
end
end

require "active_record"
puts
puts "\e[93mUsing ActiveRecord #{ActiveRecord.version}\e[0m"

0 comments on commit 39107b0

Please sign in to comment.