-
Notifications
You must be signed in to change notification settings - Fork 30
Test against released Rails #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,21 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
gemfile: | ||
- Gemfile | ||
- gemfiles/Gemfile-rails-main | ||
ruby: ["3.0", "3.1", "3.2", "3.3", "head"] | ||
include: | ||
- ruby: "head" | ||
experimental: true | ||
- gemfile: "gemfiles/Gemfile-rails-main" | ||
experimental: true | ||
exclude: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To avoid the headache of Bundler platform changes. |
||
- os: "windows-latest" | ||
ruby: "3.0" | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ !!matrix.experimental }} | ||
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} | ||
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} with ${{matrix.gemfile}} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it work if we used eval_gemfile("../Gemfile")
gem "rails", github: "rails/rails", branch: "main" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's complains:
but we could extract out the commonality, and call (@Morriar do you have some approach for keeping these in sync on Tapioca?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In that case, I think it should probably be fine. We can always re-evaluate if it becomes difficult to maintain. Another option would be using an environment variable to decide only the if ENV["USE_RAILS_MAIN"]
gem "rails", github: "rails/rails", branch: "main"
else
gem "rails"
end |
||
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
||
# Specify your gem's dependencies in ruby_lsp_rails.gemspec. | ||
gemspec | ||
|
||
gem "puma" | ||
gem "sqlite3" | ||
gem "debug", ">= 1.7.0" | ||
gem "mocha" | ||
gem "rubocop-shopify", "~> 2.14", require: false | ||
gem "rubocop-minitest", "~> 0.34.3", require: false | ||
gem "rubocop-rake", "~> 0.6.0", require: false | ||
gem "rubocop-sorbet", "~> 0.7", require: false | ||
gem "rdoc", require: false | ||
gem "sorbet-static-and-runtime", platforms: :ruby | ||
gem "tapioca", "~> 0.11", require: false, platforms: :ruby | ||
gem "psych", "~> 5.1", require: false | ||
gem "rails", github: "rails/rails", branch: "main" | ||
gem "tzinfo-data", platforms: :windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the same naming as in
tapioca
.