Skip to content

Commit

Permalink
Test against Rails main
Browse files Browse the repository at this point in the history
Drop upper limit on Rails, test against Rails main.
  • Loading branch information
HeyNonster committed Jul 1, 2024
1 parent 4a197d4 commit f0bf31e
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- rails6.1
- rails7.0
- rails7.1
- rails_main
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test_against_rails_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test against Rails main

on:
schedule:
- cron: "0 0 * * *" # Run every day at 00:00 UTC
workflow_dispatch:

jobs:
specs:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version:
- '3.3'
gemfile:
- rails_main
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: RSpec
run: bundle exec rspec
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.config
.yardoc
/Gemfile.lock
/gemfiles/rails_main.gemfile.lock
InstalledFiles
_yardoc
coverage
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
###### Unreleased

* Drop upper limit on Rails, test with Rails main.
* Drop support for Rails < 6.0.
* Drop support for Ruby 2.7 & 3.0.

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails6.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
zombie_record (1.7.0)
activerecord (>= 6.1, < 7.2)
activerecord (>= 6.1)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails7.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
zombie_record (1.7.0)
activerecord (>= 6.1, < 7.2)
activerecord (>= 6.1)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails7.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
zombie_record (1.7.0)
activerecord (>= 6.1, < 7.2)
activerecord (>= 6.1)

GEM
remote: https://rubygems.org/
Expand Down
6 changes: 6 additions & 0 deletions gemfiles/rails_main.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

gemspec path: "../"

gem "activerecord", github: "rails/rails", branch: "main"
gem "sqlite3"
2 changes: 1 addition & 1 deletion zombie_record.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 3.1"

spec.add_dependency "activerecord", ">= 6.1", "< 7.2"
spec.add_dependency "activerecord", ">= 6.1"

spec.add_development_dependency "bundler"
spec.add_development_dependency "byebug"
Expand Down

0 comments on commit f0bf31e

Please sign in to comment.