Skip to content

Commit

Permalink
update codecov report
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Oct 23, 2023
1 parent 5abb574 commit b61f9b2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
CI: "true"
CODECOV: "true"
SIMPLECOV: "true"
RUBY_VERSION: 3.0.5
NODE_VERSION: 16.9.1
RAILS_ENV: test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
CI: "true"
CODECOV: "true"
SIMPLECOV: "true"
RUBY_VERSION: 3.0.5
NODE_VERSION: 16.9.1

Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.5
3.0.6
23 changes: 14 additions & 9 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# frozen_string_literal: true

SimpleCov.start do
root ENV.fetch("ENGINE_ROOT", nil)
if ENV["SIMPLECOV"]
SimpleCov.start do
# We ignore some of the files because they are never tested
add_filter "/config/"
add_filter "/db/"
add_filter "lib/decidim/reporting_proposals/version.rb"
add_filter "/spec"
end

add_filter "lib/decidim/reporting_proposals/version.rb"
add_filter "lib/decidim/reporting_proposals/component.rb"
add_filter "/spec"
end

SimpleCov.command_name ENV.fetch("COMMAND_NAME", nil) || File.basename(Dir.pwd)
SimpleCov.merge_timeout 1800

SimpleCov.merge_timeout 1800
if ENV["CI"]
require "simplecov-cobertura"
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end
end
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ DEPENDENCIES
web-console

RUBY VERSION
ruby 3.0.5p211
ruby 3.0.6p216

BUNDLED WITH
2.3.20
7 changes: 0 additions & 7 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

require "decidim/dev"

require "simplecov"
SimpleCov.start "rails"
if ENV["CODECOV"]
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

ENV["ENGINE_ROOT"] = File.dirname(__dir__)

Decidim::Dev.dummy_app_path = File.expand_path(File.join(__dir__, "decidim_dummy_app"))
Expand Down

0 comments on commit b61f9b2

Please sign in to comment.