Skip to content

Commit

Permalink
CI: Add Ruby 3.3 to the test matrix (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
orien authored May 5, 2024
1 parent 28cf4e0 commit dfdf61d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
11 changes: 6 additions & 5 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 Expand Up @@ -38,7 +39,7 @@ jobs:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
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 dfdf61d

Please sign in to comment.