Merge pull request #2728 from hennevogel/feature/codacy

Set cobertura as simplecove formatter in github actions
This commit is contained in:
Henne Vogelsang 2021-03-06 18:43:03 +01:00 committed by GitHub
commit f50a92bf53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 10 deletions

View file

@ -49,3 +49,4 @@ jobs:
if: github.ref == 'refs/heads/master'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/coverage.xml

View file

@ -245,7 +245,7 @@ group :test do
gem 'transactional_capybara'
gem 'webdrivers'
# for measuring test coverage
gem 'codecov', require: false
gem 'simplecov-cobertura'
# for describing models
gem 'shoulda-matchers', require: false
# for stubing/mocking models

View file

@ -128,9 +128,6 @@ GEM
aws_cf_signer
rest-client
cocoon (1.2.14)
codecov (0.2.11)
json
simplecov
coderay (1.1.1)
concurrent-ruby (1.1.8)
connection_pool (2.2.2)
@ -164,7 +161,7 @@ GEM
devise_ichain_authenticatable (0.3.2)
devise (>= 2.2)
diff-lcs (1.3)
docile (1.3.2)
docile (1.3.5)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.5)
@ -530,10 +527,14 @@ GEM
shellany (0.0.1)
shoulda-matchers (4.1.2)
activesupport (>= 4.2.0)
simplecov (0.19.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (1.4.2)
simplecov (~> 0.8)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2)
sixarm_ruby_unaccent (1.2.0)
skylight (3.1.5)
skylight-core (= 3.1.5)
@ -633,7 +634,6 @@ DEPENDENCIES
climate_control
cloudinary
cocoon
codecov
countable-rails
country_select
daemons
@ -706,6 +706,7 @@ DEPENDENCIES
sass-rails (>= 4.0.2)
selectize-rails
shoulda-matchers
simplecov-cobertura
skylight
spring-commands-rspec
sprockets-rails

View file

@ -3,9 +3,9 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'simplecov'
if ENV['TRAVIS']
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
if ENV['GITHUB_ACTIONS']
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end
SimpleCov.start 'rails'