Skip to content

Commit

Permalink
Test against activerecord 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Oct 5, 2023
1 parent da3c0eb commit 32d68d6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop

Expand All @@ -19,14 +19,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
gemfile: [activerecord_60, activerecord_61, activerecord_70, activerecord_head]
include:
- ruby-version: 2.7
gemfile: activerecord_60.gemfile
- ruby-version: 2.7
gemfile: activerecord_61.gemfile
- ruby-version: 2.7
gemfile: activerecord_70.gemfile
- ruby-version: 2.7
gemfile: activerecord_71.gemfile
- ruby-version: 2.7
gemfile: activerecord_head.gemfile

# Test against latest versions just in case.
- ruby-version: 3.2
gemfile: activerecord_head.gemfile
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: bundle exec rake test
5 changes: 5 additions & 0 deletions gemfiles/activerecord_71.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

@ar_gem_requirement = "~> 7.1.0"

eval_gemfile "../Gemfile"

0 comments on commit 32d68d6

Please sign in to comment.