From a9ce80385b554f96bde05ab408eab451ccbe14a3 Mon Sep 17 00:00:00 2001 From: Jordan Hollinger Date: Mon, 16 Dec 2024 12:35:20 -0500 Subject: [PATCH 1/2] Add an appraisal for ActiveRecord 8.0 Signed-off-by: Jordan Hollinger --- Appraisals | 5 +++++ gemfiles/ar_8.0.gemfile | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 gemfiles/ar_8.0.gemfile diff --git a/Appraisals b/Appraisals index 826bb0a..63771a7 100644 --- a/Appraisals +++ b/Appraisals @@ -1,5 +1,10 @@ # frozen_string_literal: true +appraise "ar-8.0" do + gem "activerecord", "~> 8.0.1" + gem "sqlite3", "~> 2.4.1" +end + appraise "ar-7.2" do gem "activerecord", "~> 7.2.1" end diff --git a/gemfiles/ar_8.0.gemfile b/gemfiles/ar_8.0.gemfile new file mode 100644 index 0000000..e22244e --- /dev/null +++ b/gemfiles/ar_8.0.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activerecord", "~> 8.0.1" +gem "sqlite3", "~> 2.4.1" + +gemspec path: "../" From 8c4a4c37b9e776d67d4e843346874bba4e63cad9 Mon Sep 17 00:00:00 2001 From: Jordan Hollinger Date: Mon, 16 Dec 2024 12:43:35 -0500 Subject: [PATCH 2/2] Separate test for Ruby 3.1 Signed-off-by: Jordan Hollinger --- .github/workflows/test.yaml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5b6c337..44513dc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - ruby: ["3.1", "3.2", "3.3"] + ruby: ["3.2", "3.3"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 @@ -27,6 +27,33 @@ jobs: - name: Run tests run: bundle exec appraisal rake test + test-3_1: + strategy: + matrix: + os: [ubuntu-latest] + ruby: ["3.1"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Installing dependencies + run: | + bundle check --path=vendor/bundle || bundle install --path=vendor/bundle + bundle exec appraisal ar-6.1 bundle install --path=vendor/bundle + bundle exec appraisal ar-7.0 bundle install --path=vendor/bundle + bundle exec appraisal ar-7.1 bundle install --path=vendor/bundle + bundle exec appraisal ar-7.2 bundle install --path=vendor/bundle + - name: Run tests + run: | + bundle exec appraisal ar-6.1 rake test + bundle exec appraisal ar-7.0 rake test + bundle exec appraisal ar-7.1 rake test + bundle exec appraisal ar-7.2 rake test + test-3_0: strategy: matrix: