Skip to content

Commit

Permalink
support Ruby >= 3.2, Rails >= 6.1 for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fursich committed Sep 4, 2024
1 parent dc6b5ba commit afcdeb3
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: ci

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby_version: ['3.3', '3.2']
rails_version: ['7.2', '7.1', '7.0', '6.1']
env:
BUNDLE_GEMFILE: gemfiles/Gemfile.rails_${{ matrix.rails_version }}

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
rubygems: 'latest'
- run: bundle exec rake spec
5 changes: 3 additions & 2 deletions gemfiles/Gemfile.rails_6.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '6.1.1'
gem 'activerecord', '6.1.7'
gem 'sqlite3', '~> 1.5'

gemspec path: '../'
5 changes: 3 additions & 2 deletions gemfiles/Gemfile.rails_5.2 → gemfiles/Gemfile.rails_7.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '5.2.4.4'
gem 'activerecord', '7.0.8'
gem 'sqlite3', '~> 1.7'

gemspec path: '../'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile.rails_7.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '~> 7.1.0'
gem 'sqlite3', '~> 1.7'

gemspec path: '../'
5 changes: 3 additions & 2 deletions gemfiles/Gemfile.rails_6.0 → gemfiles/Gemfile.rails_7.2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '6.0.3.4'
gem 'activerecord', '7.2.1'
gem 'sqlite3', '~> 1.7'

gemspec path: '../'
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

# need to maintain class-baseed caches in clean state
config.around(:each) do |example|
config.around(:each) do |example|
DumpedRailers.configure_defaults!
example.run
DumpedRailers::RecordBuilder::FixtureRow::RecordStore.clear!
Expand Down

0 comments on commit afcdeb3

Please sign in to comment.