Skip to content

Commit

Permalink
Build for Rails 7.1.a
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Mar 10, 2023
1 parent 0a57e09 commit 0de6d4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
matrix:
rails:
- "7.0"
- "main"
ruby:
- "3.0"
- "3.1"
Expand Down
8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ source "https://rubygems.org"

gemspec

rails_version = ENV.fetch("RAILS_VERSION", 7.0).to_f
gem "rails", "~> #{rails_version}.0"
rails_version = ENV.fetch("RAILS_VERSION", 7.0)
if rails_version == "main"
gem "rails", git: "https://github.com/rails/rails.git", branch: "main"
else
gem "rails", "~> #{rails_version}.0"
end

if ENV["DB"].nil? || ENV["DB"] == "sqlite"
gem "sqlite3", "~> 1.6.0"
Expand Down

0 comments on commit 0de6d4e

Please sign in to comment.