Skip to content

Commit 8733904

Browse files
authored
Merge pull request #271 from segmentio/MichaelGHSegcodecov-token
Update codecov
2 parents c440393 + 42d4dd8 commit 8733904

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/ruby.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ jobs:
3030
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3131
- name: Run tests
3232
run: bundle exec rake
33+
- name: Upload coverage reports to Codecov
34+
uses: codecov/[email protected]
35+
env:
36+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
source 'http://rubygems.org'
22
gemspec
3+
4+
gem 'simplecov'
5+
gem 'simplecov-cobertura'

analytics-ruby.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
2727
spec.add_development_dependency 'oj', '~> 3.6.2'
2828
end
2929
spec.add_development_dependency 'rubocop', '~> 1.0'
30-
spec.add_development_dependency 'codecov', '~> 0.6'
3130
end

spec/spec_helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# frozen_string_literal: true
22

3-
# https://github.com/codecov/codecov-ruby#usage
43
require 'simplecov'
54
SimpleCov.start
6-
require 'codecov'
7-
SimpleCov.formatter = SimpleCov::Formatter::Codecov
5+
require 'simplecov-cobertura'
6+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
87

98
require 'segment/analytics'
109
require 'active_support/time'

0 commit comments

Comments
 (0)