File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ push :
5+ pull_request :
6+ schedule :
7+ - cron : " 30 14 * * *"
8+
9+ jobs :
10+ test-ruby-versions :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ ruby : ['head', '3.2', '3.1', '3.0']
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : ruby/setup-ruby@v1
19+ with :
20+ ruby-version : ${{ matrix.ruby }}
21+ bundler-cache : true
22+ - run : bundle install
23+ - run : bundle exec rake test
24+
25+ test-rbs-versions :
26+ runs-on : ubuntu-latest
27+ strategy :
28+ fail-fast : false
29+ matrix :
30+ rbs : ['latest', '3.0', '2.7.0']
31+ env :
32+ GEMFILE_RBS_VERSION : ${{matrix.rbs}}
33+ steps :
34+ - uses : actions/checkout@v4
35+ - uses : ruby/setup-ruby@v1
36+ with :
37+ ruby-version : ' 3.2'
38+ bundler-cache : true
39+ - run : bundle install
40+ - run : bundle exec rake test
41+
42+ test-prism-versions :
43+ runs-on : ubuntu-latest
44+ strategy :
45+ fail-fast : false
46+ matrix :
47+ prism : ['0.17.1']
48+ env :
49+ GEMFILE_PRISM_VERSION : ${{matrix.prism}}
50+ steps :
51+ - uses : actions/checkout@v4
52+ - uses : ruby/setup-ruby@v1
53+ with :
54+ ruby-version : ' 3.2'
55+ bundler-cache : true
56+ - run : bundle install
57+ - run : bundle exec rake test
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- source " https://rubygems.org"
3+ source ' https://rubygems.org'
44
55# Specify your gem's dependencies in repl_completion.gemspec
66gemspec
77
8- gem "rake" , "~> 13.0"
9- gem "test-unit"
10- gem "test-unit-ruby-core"
8+ gem 'rake' , '~> 13.0'
9+ gem 'test-unit'
10+ gem 'test-unit-ruby-core'
11+
12+ if ENV [ 'GEMFILE_PRISM_VERSION' ]
13+ if ENV [ 'GEMFILE_PRISM_VERSION' ] == 'latest'
14+ gem 'prism' , github : 'ruby/prism'
15+ else
16+ gem 'prism' , ENV [ 'GEMFILE_PRISM_VERSION' ]
17+ end
18+ end
19+
20+ if ENV [ 'GEMFILE_RBS_VERSION' ]
21+ if ENV [ 'GEMFILE_RBS_VERSION' ] == 'latest'
22+ gem 'rbs' , github : 'ruby/rbs'
23+ else
24+ gem 'rbs' , ENV [ 'GEMFILE_RBS_VERSION' ]
25+ end
26+ end
You can’t perform that action at this time.
0 commit comments