From 8b5ee569b9a041bdafcbad5c646ee501a8c3bd83 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Mon, 22 Jan 2024 20:20:41 +0100 Subject: [PATCH] chore: test ruby 3.3 (#110) --- .github/workflows/engines.yml | 3 ++- .github/workflows/ruby.yml | 8 ++++++-- Appraisals | 8 +++++++- gemfiles/active_record_6.0.gemfile | 2 +- gemfiles/active_record_6.1.gemfile | 2 +- gemfiles/active_record_7.0.gemfile | 2 +- gemfiles/active_record_7.1.gemfile | 13 +++++++++++++ gemfiles/active_record_edge.gemfile | 2 +- 8 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 gemfiles/active_record_7.1.gemfile diff --git a/.github/workflows/engines.yml b/.github/workflows/engines.yml index 0400e12..d5ed7bc 100644 --- a/.github/workflows/engines.yml +++ b/.github/workflows/engines.yml @@ -16,11 +16,12 @@ jobs: - gemfiles/active_record_6.0.gemfile - gemfiles/active_record_6.1.gemfile - gemfiles/active_record_7.0.gemfile + - gemfiles/active_record_7.1.gemfile - gemfiles/active_record_edge.gemfile env: BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfiles }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index c2ccf5f..029afd9 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -11,16 +11,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2'] + ruby-version: ['3.0', '3.1', '3.2', '3.3'] gemfiles: - gemfiles/active_record_6.0.gemfile - gemfiles/active_record_6.1.gemfile - gemfiles/active_record_7.0.gemfile + - gemfiles/active_record_7.1.gemfile - gemfiles/active_record_edge.gemfile + exclude: + - ruby-version: '3.0' + gemfiles: gemfiles/active_record_edge.gemfile env: BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfiles }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/Appraisals b/Appraisals index c731107..af9f3e6 100644 --- a/Appraisals +++ b/Appraisals @@ -13,7 +13,13 @@ end appraise 'active_record_7.0' do gem "sqlite3", platforms: [:mri, :rbx] gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] - gem "activerecord", '~> 7.0.4' + gem "activerecord", '~> 7.0.5' +end + +appraise 'active_record_7.1' do + gem "sqlite3", platforms: [:mri, :rbx] + gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] + gem "activerecord", '~> 7.1.3' end appraise "active_record_edge" do diff --git a/gemfiles/active_record_6.0.gemfile b/gemfiles/active_record_6.0.gemfile index e08b662..bf941a3 100644 --- a/gemfiles/active_record_6.0.gemfile +++ b/gemfiles/active_record_6.0.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "sqlite3", platforms: [:mri, :rbx] +gem "sqlite3", platforms: :mri gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] gem "activerecord", "~> 6.0.3" diff --git a/gemfiles/active_record_6.1.gemfile b/gemfiles/active_record_6.1.gemfile index 5b39dfa..3e77b78 100644 --- a/gemfiles/active_record_6.1.gemfile +++ b/gemfiles/active_record_6.1.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "sqlite3", platforms: [:mri, :rbx] +gem "sqlite3", platforms: :mri gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] gem "activerecord", "~> 6.1.3" diff --git a/gemfiles/active_record_7.0.gemfile b/gemfiles/active_record_7.0.gemfile index 87e6d00..7824e92 100644 --- a/gemfiles/active_record_7.0.gemfile +++ b/gemfiles/active_record_7.0.gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" gem "sqlite3", platforms: [:mri, :rbx] gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] -gem "activerecord", "~> 7.0.4" +gem "activerecord", "~> 7.0.5" platforms :mri do gem "pry-byebug" diff --git a/gemfiles/active_record_7.1.gemfile b/gemfiles/active_record_7.1.gemfile new file mode 100644 index 0000000..ae40e7e --- /dev/null +++ b/gemfiles/active_record_7.1.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "sqlite3", platforms: [:mri, :rbx] +gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] +gem "activerecord", "~> 7.1.3" + +platforms :mri do + gem "pry-byebug" +end + +gemspec path: "../" diff --git a/gemfiles/active_record_edge.gemfile b/gemfiles/active_record_edge.gemfile index 1444b06..8987033 100644 --- a/gemfiles/active_record_edge.gemfile +++ b/gemfiles/active_record_edge.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "sqlite3", platforms: [:mri, :rbx] +gem "sqlite3", platforms: :mri gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] gem "activerecord", github: "rails/rails", branch: "main" gem "activemodel", github: "rails/rails", branch: "main"