Skip to content

Commit

Permalink
Merge pull request #271 from segmentio/MichaelGHSegcodecov-token
Browse files Browse the repository at this point in the history
Update codecov
  • Loading branch information
MichaelGHSeg authored May 2, 2024
2 parents c440393 + 42d4dd8 commit 8733904
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
source 'http://rubygems.org'
gemspec

gem 'simplecov'
gem 'simplecov-cobertura'
1 change: 0 additions & 1 deletion analytics-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'oj', '~> 3.6.2'
end
spec.add_development_dependency 'rubocop', '~> 1.0'
spec.add_development_dependency 'codecov', '~> 0.6'
end
5 changes: 2 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# frozen_string_literal: true

# https://github.com/codecov/codecov-ruby#usage
require 'simplecov'
SimpleCov.start
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter

require 'segment/analytics'
require 'active_support/time'
Expand Down

0 comments on commit 8733904

Please sign in to comment.