This repository was archived by the owner on Oct 18, 2024. It is now read-only.
File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 23
23
ruby-version : ${{ matrix.ruby-version }}
24
24
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
25
25
- name : Run tests
26
- run : ruby mini_test_runner.rb
26
+ run : bundle exec rake
Original file line number Diff line number Diff line change 35
35
ruby-version : ${{ matrix.ruby-version }}
36
36
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
37
37
- name : Run tests
38
- run : ruby mini_test_runner.rb
38
+ run : bundle exec rake
39
39
- name : Coverage Report by octocov (in this pull request)
40
40
uses : k1LoW/octocov-action@v0
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require 'rspec/core'
8
8
require 'rspec/core/rake_task'
9
9
require 'rdoc/task'
10
10
require 'rake/testtask'
11
+ require 'simplecov'
11
12
12
13
begin
13
14
Bundler . setup ( :default , :development )
@@ -17,18 +18,11 @@ rescue Bundler::BundlerError => e
17
18
exit e . status_code
18
19
end
19
20
20
- # rspec
21
21
22
- RSpec ::Core ::RakeTask . new ( :spec ) do |spec |
23
- spec . pattern = FileList [ 'spec/**/*_spec.rb' ]
24
- end
25
-
26
- RSpec ::Core ::RakeTask . new ( :rcov ) do |spec |
27
- spec . pattern = 'spec/**/*_spec.rb'
28
- spec . rcov = true
29
- end
22
+ # simplecov
23
+ SimpleCov . start
30
24
31
- task :default => :spec
25
+ # RDoc
32
26
33
27
Rake ::RDocTask . new do |rdoc |
34
28
version = File . exist? ( 'VERSION' ) ? File . read ( 'VERSION' ) : ""
You can’t perform that action at this time.
0 commit comments