Skip to content

Commit

Permalink
test: update codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ghassanmas committed May 7, 2024
1 parent b9374eb commit e0d7f1d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ jobs:
- name: Run tests
run: bin/rspec -fd
continue-on-error: ${{ matrix.allow-failure }}
- name: Send test coverage report to codecov.io
uses: codecov/codecov-action@v4
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gem 'dalli'
gem 'rest-client'

group :test do
gem 'codecov', :require => false
gem 'simplecov-cobertura', :require => false
gem 'mongoid_cleaner', '~> 1.2.0'
gem 'factory_bot'
gem 'faker'
Expand Down
9 changes: 5 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ GEM
bigdecimal (3.1.6)
bson (4.15.0)
bson_ext (1.5.1)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
coderay (1.1.3)
concurrent-ruby (1.2.3)
crack (1.0.0)
Expand Down Expand Up @@ -201,10 +199,13 @@ GEM
rspec-support (3.13.0)
ruby2_keywords (0.0.5)
shellany (0.0.1)
simplecov (0.21.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sinatra (4.0.0)
Expand Down Expand Up @@ -241,7 +242,6 @@ DEPENDENCIES
bson
bson_ext
bundler
codecov
dalli
ddtrace
delayed_job
Expand Down Expand Up @@ -272,6 +272,7 @@ DEPENDENCIES
rspec
rspec-collection_matchers
rspec-its
simplecov-cobertura
sinatra
sinatra-param (~> 1.4)
timecop (~> 0.9.5)
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'simplecov'
SimpleCov.start
if ENV['CI']=='true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require File.join(File.dirname(__FILE__), '..', 'app')
Expand Down

0 comments on commit e0d7f1d

Please sign in to comment.