File tree Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ ruby-version : ['2.6', '2.7', '3.0', '3.1']
11+
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Set up Ruby ${{ matrix.ruby-version }}
15+ uses : ruby/setup-ruby@v1
16+ with :
17+ ruby-version : ${{ matrix.ruby-version }}
18+ bundler-cache : true # 'bundle install' and cache
19+ - name : Run specs
20+ run : |
21+ bundle exec rake
Original file line number Diff line number Diff line change @@ -14,21 +14,12 @@ RDoc::Task.new(:rdoc) do |rdoc|
1414 rdoc . rdoc_files . include ( 'lib/**/*.rb' )
1515end
1616
17-
18-
19-
20-
21-
2217require 'bundler/gem_tasks'
2318
24- require 'rake/testtask'
25-
26- Rake ::TestTask . new ( :test ) do |t |
27- t . libs << 'lib'
28- t . libs << 'test'
29- t . pattern = 'test/**/*_test.rb'
30- t . verbose = false
19+ require 'rspec/core/rake_task'
20+ RSpec ::Core ::RakeTask . new do |spec |
21+ spec . pattern = 'spec/**/*_spec.rb'
3122end
3223
3324
34- task default : :test
25+ task default : :spec
You can’t perform that action at this time.
0 commit comments