Skip to content
Open
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
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@ jobs:
run: bundle exec rake test
- name: Run tests in isolation
run: bundle exec rake test_in_isolation
prism-version-test:
needs: ruby-versions
name: rake test prism-${{ matrix.prism_version }}
strategy:
matrix:
prism_version: ['1.3.0', '1.7.0', 'latest']
fail-fast: false
runs-on: ubuntu-latest
env:
PRISM_VERSION: ${{matrix.prism_version}}
timeout-minutes: 30
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.latest) }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
debug-test:
if: github.repository == 'ruby/irb' || github.event_name != 'schedule'
name: Debug compatibility test
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ gem "debug", github: "ruby/debug"

gem "rdoc", ">= 6.11.0"

if ENV['PRISM_VERSION'] == 'latest'
gem "prism", github: "ruby/prism"
elsif ENV['PRISM_VERSION']
gem "prism", ENV['PRISM_VERSION']
end

if RUBY_VERSION >= "3.0.0" && !is_truffleruby
# TODO: Remove this after rbs is released with tsort in its dependencies
gem "rbs", github: "ruby/rbs" if RUBY_VERSION >= "3.2"
Expand Down
1 change: 1 addition & 0 deletions irb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = Gem::Requirement.new(">= 2.7")

spec.add_dependency "prism", ">= 1.3.0"
spec.add_dependency "reline", ">= 0.4.2"
spec.add_dependency "rdoc", ">= 4.0.0"
spec.add_dependency "pp", ">= 0.6.0"
Expand Down
Loading
Loading