Skip to content

Commit

Permalink
CI: Add Ruby 3.3 to the test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed May 5, 2024
1 parent 28cf4e0 commit 078df97
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: CI
on: [push, pull_request]
jobs:
build:
test:
name: 'Test (Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.rails }}, DB: ${{ matrix.db }})'
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2']
gemfile: [Gemfile.rails-6.1.x, Gemfile.rails-7.0.x, Gemfile.rails-7.1.x]
ruby: ['3.3', '3.2', '3.1', '3.0']
rails: ['7.1', '7.0', '6.1']
db: [mysql, postgres, sqlite]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/spec/support/gemfiles/${{ matrix.gemfile }}
BUNDLE_GEMFILE: ${{ github.workspace }}/spec/support/gemfiles/Gemfile.rails-${{ matrix.rails }}.x
DB: ${{ matrix.db }}
services:
mysql:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ DoubleEntry uses the [Money gem](https://github.com/RubyMoney/money) to encapsul
DoubleEntry is tested against:

Ruby
* 2.7.x
* 3.0.x
* 3.1.x
* 3.3.x
* 3.2.x
* 3.1.x
* 3.0.x

Rails
* 6.0.x
* 6.1.x
* 7.1.x
* 7.0.x
* 6.1.x

Databases
* MySQL
Expand Down
7 changes: 4 additions & 3 deletions spec/support/gemfiles/Gemfile.rails-6.1.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gemspec path: '../../../'

gem 'activerecord', '~> 6.1.0'

# Rails imposed mysql2 version contraints
# https://github.com/rails/rails/blob/6-1-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '>= 0.5'
# Rails imposed database gem constraints
gem 'mysql2', '~> 0.5' # https://github.com/rails/rails/blob/6-1-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'pg', '~> 1.1' # https://github.com/rails/rails/blob/6-1-stable/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
gem 'sqlite3', '~> 1.4' # https://github.com/rails/rails/blob/6-1-stable/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
7 changes: 4 additions & 3 deletions spec/support/gemfiles/Gemfile.rails-7.0.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gemspec path: '../../../'

gem 'activerecord', '~> 7.0.0'

# Rails imposed mysql2 version contraints
# https://github.com/rails/rails/blob/7-0-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '~> 0.5'
# Rails imposed database gem constraints
gem 'mysql2', '~> 0.5' # https://github.com/rails/rails/blob/7-0-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'pg', '~> 1.1' # https://github.com/rails/rails/blob/7-0-stable/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
gem 'sqlite3', '~> 1.4' # https://github.com/rails/rails/blob/7-0-stable/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
7 changes: 4 additions & 3 deletions spec/support/gemfiles/Gemfile.rails-7.1.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gemspec path: '../../../'

gem 'activerecord', '~> 7.1.0'

# Rails imposed mysql2 version contraints
# https://github.com/rails/rails/blob/7-1-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '~> 0.5'
# Rails imposed database gem constraints
gem 'mysql2', '~> 0.5' # https://github.com/rails/rails/blob/7-1-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'pg', '~> 1.1' # https://github.com/rails/rails/blob/7-1-stable/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
gem 'sqlite3', '~> 1.4' # https://github.com/rails/rails/blob/7-1-stable/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14

0 comments on commit 078df97

Please sign in to comment.