Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,37 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
gemfile:
- Gemfile
- Gemfile-rails-main
- gemfiles/Gemfile-rails-main
ruby: ["3.0", "3.1", "3.2", "3.3", "head"]
include:
- ruby: "head"
experimental: true
- gemfile: "Gemfile-rails-main"
- gemfile: "gemfiles/Gemfile-rails-main"
experimental: true
exclude:
- os: "windows-latest"
ruby: "3.0"
- Gemfile: "gemfiles/Gemfile-rails-main" # needs Ruby 3.1
ruby: "3.0"
runs-on: ${{ matrix.os }}
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
continue-on-error: ${{ !!matrix.experimental }}
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} with ${{matrix.gemfile}}
steps:
- uses: actions/checkout@v3

- name: Remove Gemfile.lock
if: (matrix.ruby == 'head' ) || (matrix.os == 'windows-latest' && matrix.ruby == '3.1')
run: "rm ${{ matrix.gemfile }}.lock
if: (matrix.gemfile == 'Gemfile') && ((matrix.ruby == 'head' ) || (matrix.os == 'windows-latest' && matrix.ruby == '3.1'))
run: "rm ${{ matrix.gemfile }}.lock"

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler: latest
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 6
cache-version: 7

- name: Check if documentation is up to date
run: bundle exec rake ruby_lsp:check_docs
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ GEM
rubocop (~> 1.51)
rubocop-sorbet (0.7.6)
rubocop (>= 0.90.0)
ruby-lsp (0.13.2)
ruby-lsp (0.13.3)
language_server-protocol (~> 3.17.0)
prism (>= 0.19.0, < 0.20)
sorbet-runtime (>= 0.5.5685)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile-rails-main → gemfiles/Gemfile-rails-main
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Specify your gem's dependencies in ruby_lsp_rails.gemspec.
gemspec
gemspec path: ".."

gem "puma"
gem "sqlite3"
Expand Down
Loading