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 eb3ef87 commit fd37a9f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: CI
on: [push, pull_request]

jobs:
Expand All @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop

Expand Down Expand Up @@ -44,15 +44,28 @@ jobs:
- 3306:3306
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: ${{ github.workspace }}/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
- name: Run the test suite
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 fd37a9f

Please sign in to comment.