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 5717c62 commit 0fed3af
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 72 deletions.
95 changes: 23 additions & 72 deletions .github/workflows/test.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.0
ruby-version: 3.2
bundler-cache: true
- run: bundle exec rubocop

Expand All @@ -33,79 +33,30 @@ jobs:
strategy:
matrix:
include:
- ruby-version: 2.4.10
gemfile: gemfiles/activerecord_42.gemfile
- ruby-version: 2.5.9
gemfile: gemfiles/activerecord_42.gemfile
- ruby-version: 2.6.9
gemfile: gemfiles/activerecord_42.gemfile
- ruby-version: 2.4
gemfile: activerecord_42.gemfile
- ruby-version: 2.4
gemfile: activerecord_50.gemfile
- ruby-version: 2.4
gemfile: activerecord_51.gemfile
- ruby-version: 2.4
gemfile: activerecord_52.gemfile
- ruby-version: 2.5
gemfile: activerecord_60.gemfile
- ruby-version: 2.5
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

- ruby-version: 2.4.10
gemfile: gemfiles/activerecord_50.gemfile
- ruby-version: 2.5.9
gemfile: gemfiles/activerecord_50.gemfile
- ruby-version: 2.6.9
gemfile: gemfiles/activerecord_50.gemfile
- ruby-version: 2.7.5
gemfile: gemfiles/activerecord_50.gemfile

- ruby-version: 2.4.10
gemfile: gemfiles/activerecord_51.gemfile
- ruby-version: 2.5.9
gemfile: gemfiles/activerecord_51.gemfile
- ruby-version: 2.6.9
gemfile: gemfiles/activerecord_51.gemfile
- ruby-version: 2.7.5
gemfile: gemfiles/activerecord_51.gemfile

- ruby-version: 2.4.10
gemfile: gemfiles/activerecord_52.gemfile
- ruby-version: 2.5.9
gemfile: gemfiles/activerecord_52.gemfile
- ruby-version: 2.6.9
gemfile: gemfiles/activerecord_52.gemfile
- ruby-version: 2.7.5
gemfile: gemfiles/activerecord_52.gemfile

- ruby-version: 2.5.9
gemfile: gemfiles/activerecord_60.gemfile
- ruby-version: 2.6.9
gemfile: gemfiles/activerecord_60.gemfile
- ruby-version: 2.7.5
gemfile: gemfiles/activerecord_60.gemfile
- ruby-version: 3.0.3
gemfile: gemfiles/activerecord_60.gemfile

- ruby-version: 2.5.9
gemfile: gemfiles/activerecord_61.gemfile
- ruby-version: 2.6.9
gemfile: gemfiles/activerecord_61.gemfile
- ruby-version: 2.7.4
gemfile: gemfiles/activerecord_61.gemfile
- ruby-version: 3.0.3
gemfile: gemfiles/activerecord_61.gemfile
- ruby-version: 3.1.0
gemfile: gemfiles/activerecord_61.gemfile

- ruby-version: 2.7.4
gemfile: gemfiles/activerecord_70.gemfile
- ruby-version: 3.0.3
gemfile: gemfiles/activerecord_70.gemfile
- ruby-version: 3.1.0
gemfile: gemfiles/activerecord_70.gemfile
- ruby-version: 3.2.0
gemfile: gemfiles/activerecord_70.gemfile

- ruby-version: 2.7.4
gemfile: gemfiles/activerecord_head.gemfile
- ruby-version: 3.0.3
gemfile: gemfiles/activerecord_head.gemfile
- ruby-version: 3.1.0
gemfile: gemfiles/activerecord_head.gemfile
- ruby-version: 3.2.0
gemfile: gemfiles/activerecord_head.gemfile
# Test against latest versions just in case.
- ruby-version: 3.2
gemfile: activerecord_head.gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
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 0fed3af

Please sign in to comment.