Skip to content

Commit

Permalink
Merge pull request #63 from procore-oss/activerecord-8.0-tests
Browse files Browse the repository at this point in the history
Add an appraisal for ActiveRecord 8.0
  • Loading branch information
jhollinger authored Feb 25, 2025
2 parents 93914fd + 1c7c164 commit d88c3cf
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/ar_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"

0 comments on commit d88c3cf

Please sign in to comment.