File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 43
43
bundler-cache : true
44
44
45
45
- name : Collect coverage info
46
- run : bundle exec rake spec
46
+ run : bundle exec rake test
47
47
48
48
- name : Coveralls Parallel
49
49
uses : coverallsapp/github-action@master
Original file line number Diff line number Diff line change @@ -27,4 +27,7 @@ Gem::Specification.new do |gem|
27
27
gem . add_development_dependency "minitest" , ">= 3"
28
28
29
29
gem . add_development_dependency "appraisal" , "~> 2.0"
30
+
31
+ gem . add_development_dependency "simplecov" , ">= 0.22"
32
+ gem . add_development_dependency "simplecov-lcov" , ">= 0.8"
30
33
end
Original file line number Diff line number Diff line change 1
1
require 'bundler/setup'
2
+
3
+ if ENV [ "COVERALLS" ]
4
+ require "simplecov"
5
+ require "simplecov-lcov"
6
+
7
+ SimpleCov ::Formatter ::LcovFormatter . config do |c |
8
+ c . report_with_single_file = true
9
+ c . single_report_path = "coverage/lcov.info"
10
+ end
11
+
12
+ SimpleCov . formatters = SimpleCov ::Formatter ::MultiFormatter . new (
13
+ [ SimpleCov ::Formatter ::HTMLFormatter , SimpleCov ::Formatter ::LcovFormatter ]
14
+ )
15
+
16
+ SimpleCov . start do
17
+ add_filter "test/"
18
+ end
19
+ end
20
+
2
21
require 'minitest/autorun'
3
22
require 'minitest/spec'
4
23
require 'active_record/like'
You can’t perform that action at this time.
0 commit comments