Skip to content

Commit

Permalink
Run CI against Rails 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Nov 9, 2024
1 parent 92ef4fa commit 88a8fd6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
version: '7.1'
- name: 'active_record'
version: '7.2'
- name: 'active_record'
version: '8.0'
- name: 'sequel'
version: '5'
experimental: [false]
Expand All @@ -55,6 +57,38 @@ jobs:
name: 'active_record'
version: '7.2'

- ruby: '3.0'
database: 'sqlite3'
orm:
name: 'active_record'
version: '8.0'
- ruby: '3.0'
database: 'mysql'
orm:
name: 'active_record'
version: '8.0'
- ruby: '3.0'
database: 'postgres'
orm:
name: 'active_record'
version: '8.0'

- ruby: '3.1'
database: 'sqlite3'
orm:
name: 'active_record'
version: '8.0'
- ruby: '3.1'
database: 'mysql'
orm:
name: 'active_record'
version: '8.0'
- ruby: '3.1'
database: 'postgres'
orm:
name: 'active_record'
version: '8.0'

include:
# rails/sqlite3/active_record-7.2
- ruby: '3.3'
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ group :development, :test do
when 'active_record'
orm_version ||= '7.0'
case orm_version
when '6.1', '7.0', '7.1', '7.2'
when '6.1', '7.0', '7.1', '7.2', '8.0'
gem 'activerecord', "~> #{orm_version}.0"
when 'edge'
git 'https://github.com/rails/rails.git', branch: 'main' do
Expand Down Expand Up @@ -47,6 +47,8 @@ group :development, :test do
when 'sqlite3'
if orm == 'active_record' && orm_version < '5.2'
gem 'sqlite3', '~> 1.3.13'
elsif orm == 'active_record' && orm_version >= '8.0'
gem 'sqlite3', '>= 2.1.0'
else
gem 'sqlite3', '~> 1.4.1'
end
Expand Down

0 comments on commit 88a8fd6

Please sign in to comment.