Skip to content

Commit

Permalink
Fix codecov coverage uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
errm committed Aug 15, 2024
1 parent e74ed2e commit d53a3ec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ source "https://rubygems.org"
# Specify your gem's dependencies in promenade.gemspec
gemspec

gem "codecov"
gem "webrick"
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ GEM
builder (3.2.4)
byebug (11.1.3)
climate_control (1.2.0)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crass (1.0.6)
Expand Down Expand Up @@ -259,6 +257,9 @@ GEM
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)
stringio (3.1.0)
Expand All @@ -283,7 +284,6 @@ DEPENDENCIES
bundler (~> 2.0)
byebug
climate_control
codecov
promenade!
rails (> 3.0, < 8.0)
rake
Expand All @@ -294,6 +294,7 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
simplecov
simplecov-cobertura
webrick

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions promenade.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rubocop-rails"
spec.add_development_dependency "rubocop-rspec"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "simplecov-cobertura"
spec.metadata["rubygems_mfa_required"] = "true"
end
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 @@
SimpleCov.start

if ENV["CI"]
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
require "simplecov-cobertura"
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require "bundler/setup"
Expand Down

0 comments on commit d53a3ec

Please sign in to comment.