Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 0384742

Browse files
authored
Merge pull request #320 from takkii/develop
Update.
2 parents c168ef7 + bb15772 commit 0384742

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.github/workflows/minitest_on_pr_merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
ruby-version: ${{ matrix.ruby-version }}
2424
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2525
- name: Run tests
26-
run: ruby mini_test_runner.rb
26+
run: bundle exec rake

.github/workflows/ruby.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
ruby-version: ${{ matrix.ruby-version }}
3636
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3737
- name: Run tests
38-
run: ruby mini_test_runner.rb
38+
run: bundle exec rake
3939
- name: Coverage Report by octocov (in this pull request)
4040
uses: k1LoW/octocov-action@v0

Rakefile

+4-10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require 'rspec/core'
88
require 'rspec/core/rake_task'
99
require 'rdoc/task'
1010
require 'rake/testtask'
11+
require 'simplecov'
1112

1213
begin
1314
Bundler.setup(:default, :development)
@@ -17,18 +18,11 @@ rescue Bundler::BundlerError => e
1718
exit e.status_code
1819
end
1920

20-
# rspec
2121

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
3024

31-
task :default => :spec
25+
# RDoc
3226

3327
Rake::RDocTask.new do |rdoc|
3428
version = File.exist?('VERSION') ? File.read('VERSION') : ""

0 commit comments

Comments
 (0)