This repository was archived by the owner on May 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 - name : Run tests
3737 run : bundle exec rake test
3838 - name : Submit code coverage results
39- uses : paambaati/codeclimate-action@v3.2.0
39+ uses : paambaati/codeclimate-action@v9.0.0
40+ if : matrix.ruby-version != '2.1'
4041 env :
4142 CC_TEST_REPORTER_ID : ${{ secrets.CODECLIMATE_REPO_TOKEN }}
4243
Original file line number Diff line number Diff line change @@ -31,5 +31,10 @@ Gem::Specification.new do |spec|
3131 spec . add_development_dependency "yard"
3232 spec . add_development_dependency "redcarpet" if not RUBY_PLATFORM == "java"
3333 spec . add_development_dependency "test-unit"
34- spec . add_development_dependency "simplecov" , "< 0.18"
34+
35+ # The code coverage is only supported for Ruby >= 2.4
36+ if ( RUBY_VERSION . split ( '.' ) . map { |s |s . to_i } <=> [ 2 , 4 , 0 ] ) >= 0
37+ spec . add_development_dependency "simplecov"
38+ spec . add_development_dependency "simplecov_json_formatter"
39+ end
3540end
Original file line number Diff line number Diff line change 1- # Copyright (C) 2013-2014 Philipp Wolfer
1+ # Copyright (C) 2013-2014, 2025 Philipp Wolfer
22#
33# This program is free software: you can redistribute it and/or modify
44# it under the terms of the GNU Lesser General Public License as published by
1515
1616begin
1717 require 'simplecov'
18+ require "simplecov_json_formatter"
1819
20+ SimpleCov . formatter = SimpleCov ::Formatter ::JSONFormatter
1921 SimpleCov . start do
2022 add_filter "/test/"
2123 end
2224rescue LoadError
23- puts 'WARNING: codeclimate-test-reporter not available, no code coverage reported.'
25+ puts 'WARNING: simplecov not available, no code coverage reported.'
2426end
You can’t perform that action at this time.
0 commit comments