Commit 3af4067 1 parent ad0fc1c commit 3af4067 Copy full SHA for 3af4067
File tree 4 files changed +18
-11
lines changed
4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 67
67
- name : Run linters and tests
68
68
run : bundle exec rake
69
69
70
+ - name : Code coverage
71
+ uses : joshmfrankel/simplecov-check-action@main
72
+ with :
73
+ github_token : ${{ secrets.GITHUB_TOKEN }}
74
+ minimum_suite_coverage : 96
75
+
70
76
call-build-and-deploy :
71
77
if : ${{ github.ref == 'refs/heads/main' }}
72
78
needs : test
Original file line number Diff line number Diff line change @@ -48,5 +48,5 @@ group :test do
48
48
gem "rubocop-govuk" , require : false
49
49
gem "selenium-webdriver"
50
50
gem "simplecov" , require : false
51
- gem "simplecov-rcov"
51
+ gem "simplecov-json" , require : false
52
52
end
Original file line number Diff line number Diff line change 375
375
simplecov-html (~> 0.11 )
376
376
simplecov_json_formatter (~> 0.1 )
377
377
simplecov-html (0.12.3 )
378
- simplecov-rcov (0.3.1 )
379
- simplecov (>= 0.4.1 )
378
+ simplecov-json (0.2.3 )
379
+ json
380
+ simplecov
380
381
simplecov_json_formatter (0.1.4 )
381
382
smart_properties (1.17.0 )
382
383
sprockets (3.7.2 )
@@ -451,7 +452,7 @@ DEPENDENCIES
451
452
sentry-rails
452
453
sentry-ruby
453
454
simplecov
454
- simplecov-rcov
455
+ simplecov-json
455
456
uglifier
456
457
virtus
457
458
Original file line number Diff line number Diff line change 1
1
ENV [ "RAILS_ENV" ] ||= "test"
2
2
3
3
require "simplecov"
4
- SimpleCov . minimum_coverage 100
5
-
6
- SimpleCov . start do
7
- add_filter "spec/support"
8
- add_filter "spec/rails_helper.rb"
9
- add_filter "config/initializers"
10
- add_filter "config/routes.rb"
4
+ require "simplecov-json"
5
+ SimpleCov . formatters = SimpleCov :: Formatter :: MultiFormatter . new ( [
6
+ SimpleCov :: Formatter :: HTMLFormatter ,
7
+ SimpleCov :: Formatter :: JSONFormatter ,
8
+ ] )
9
+ SimpleCov . start "rails" do
10
+ add_filter %r{^/lib/}
11
11
end
12
12
13
13
Dir [ "./spec/support/**/*.rb" ] . each { |f | require f }
You can’t perform that action at this time.
0 commit comments