Skip to content

Commit

Permalink
Merge pull request #32 from lunohodov/test-rails-7.1
Browse files Browse the repository at this point in the history
Add Rails 7.1 to the test matrix
  • Loading branch information
lunohodov authored Mar 5, 2024
2 parents b7bd92c + 5a2c4dc commit c27d138
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
gemfile:
- "6.1"
- "7.0"
- "7.1"
ruby:
- "3.0.0"
- "3.1.0"
Expand All @@ -37,7 +38,9 @@ jobs:
bundler-cache: true

- name: "Reset app database"
run: bundle exec rake fake:db:reset
run: |
bundle exec rake fake:db:reset
bundle exec rake fake:db:test:prepare
- name: "Run tests without acceptance"
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ fabric.properties
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-shm
/db/*.sqlite3-wal

# Ignore all logfiles and tempfiles.
/log/*
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ end
appraise "rails_7.0" do
gem "rails", "~> 7.0"
end

appraise "rails_7.1" do
gem "rails", "~> 7.1.0"
end
14 changes: 14 additions & 0 deletions gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "break"
gem "pry", require: false
gem "rake"
gem "rspec-rails"
gem "sqlite3"
gem "standard"
gem "rails", "~> 7.1.0"

gemspec name: "monarch_migrate", path: "../"
4 changes: 0 additions & 4 deletions test/fake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ class Application < Rails::Application
config.paths.add "config/routes.rb", with: "#{APP_ROOT}/config/routes.rb"
config.secret_key_base = "SECRET_KEY_BASE"

if Rails::VERSION::MAJOR > 6
config.active_record.legacy_connection_handling = false
end

if config.active_record.sqlite3.respond_to?(:represent_boolean_as_integer)
if Rails::VERSION::MAJOR < 6
config.active_record.sqlite3.represent_boolean_as_integer = true
Expand Down

0 comments on commit c27d138

Please sign in to comment.