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 c179676 commit b8b348f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
42 changes: 9 additions & 33 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
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop

Expand All @@ -19,42 +19,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ruby-version: 2.7
gemfile: gemfiles/activerecord_60.gemfile
- ruby-version: 3.0
gemfile: gemfiles/activerecord_60.gemfile

- ruby-version: 2.7
gemfile: gemfiles/activerecord_61.gemfile
- ruby-version: 3.0
gemfile: gemfiles/activerecord_61.gemfile
- ruby-version: 3.1
gemfile: gemfiles/activerecord_61.gemfile

- ruby-version: 2.7
gemfile: gemfiles/activerecord_70.gemfile
- ruby-version: 3.0
gemfile: gemfiles/activerecord_70.gemfile
- ruby-version: 3.1
gemfile: gemfiles/activerecord_70.gemfile
- ruby-version: 3.2
gemfile: gemfiles/activerecord_70.gemfile

- ruby-version: 2.7
gemfile: gemfiles/activerecord_head.gemfile
- ruby-version: 3.0
gemfile: gemfiles/activerecord_head.gemfile
- ruby-version: 3.1
gemfile: gemfiles/activerecord_head.gemfile
- ruby-version: 3.2
gemfile: gemfiles/activerecord_head.gemfile
gemfile:
- activerecord_60.gemfile
- activerecord_61.gemfile
- activerecord_70.gemfile
- activerecord_71.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
with:
ruby-version: ${{ matrix.ruby-version }}
ruby-version: 2.7
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

@rails_requirement = "~> 7.1.0"

eval_gemfile "../Gemfile"

0 comments on commit b8b348f

Please sign in to comment.