File tree 5 files changed +26
-1
lines changed
5 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 40
40
with :
41
41
ruby-version : " ${{ matrix.ruby }}"
42
42
bundler-cache : true
43
- - run : bundle exec rake ${{ matrix.task }}
43
+ - run : NO_COVERAGE=true bundle exec rake ${{ matrix.task }}
44
+
45
+ coverage :
46
+ runs-on : ubuntu-latest
47
+ name : " Test coverage"
48
+ steps :
49
+ - uses : actions/checkout@v3
50
+ - uses : ruby/setup-ruby@v1
51
+ with :
52
+ ruby-version : " 3.2"
53
+ bundler-cache : true
54
+ - run : bundle exec rake spec
44
55
45
56
edge-rubocop :
46
57
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 17
17
18
18
.ruby-gemset
19
19
.ruby-version
20
+
21
+ # simplecov generated
22
+ coverage
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov . start do
4
+ enable_coverage :branch
5
+ minimum_coverage line : 99.86 , branch : 95.33
6
+ add_filter '/spec/'
7
+ add_filter '/vendor/bundle/'
8
+ end
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ gem 'rake'
10
10
gem 'rspec' , '~> 3.11'
11
11
gem 'rubocop-performance' , '~> 1.7'
12
12
gem 'rubocop-rake' , '~> 0.6'
13
+ gem 'simplecov' , '>= 0.19'
13
14
gem 'yard'
14
15
15
16
local_gemfile = 'Gemfile.local'
Original file line number Diff line number Diff line change 3
3
require 'rubocop'
4
4
require 'rubocop/rspec/support'
5
5
6
+ require 'simplecov' unless ENV [ 'NO_COVERAGE' ]
7
+
6
8
module SpecHelper
7
9
ROOT = Pathname . new ( __dir__ ) . parent . freeze
8
10
end
You can’t perform that action at this time.
0 commit comments