Skip to content

Commit

Permalink
Add Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Feb 6, 2021
1 parent 93d0b43 commit f3e4f6c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ jobs:

- name: Run specs
run: |
bundle install --jobs 4 --retry 3 --no-cache --frozen
bundle install --jobs 4 --retry 3 --no-cache
bundle exec rspec
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ PATH
GEM
remote: https://rubygems.org/
specs:
codecov (0.4.3)
simplecov (>= 0.15, < 0.22)
concurrent-ruby (1.1.8)
diff-lcs (1.4.4)
docile (1.3.5)
faraday (1.3.0)
faraday-net_http (~> 1.0)
multipart-post (>= 1.2, < 3)
Expand Down Expand Up @@ -38,16 +41,22 @@ GEM
sentry-ruby-core (4.2.0)
concurrent-ruby
faraday
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.3)

PLATFORMS
ruby

DEPENDENCIES
bundler (>= 1.17)
codecov
rack
rake (~> 10.0)
rspec (~> 3.0)
sentry-sanitizer!
simplecov (~> 0.18.5)

BUNDLED WITH
2.1.4
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
![CI](https://github.com/mrexox/sentry-sanitizer/workflows/CI/badge.svg)
[![Gem Version](https://badge.fury.io/rb/sentry-sanitizer.svg)](https://badge.fury.io/rb/sentry-sanitizer)
[![codecov](https://codecov.io/gh/mrexox/sentry-sanitizer/branch/master/graph/badge.svg?token=QW93HCVI0W)](https://codecov.io/gh/mrexox/sentry-sanitizer)

# sentry-sanitizer: sanitizing extension for sentry-ruby

This gem claims to add sanitizing support to [sentry-ruby](https://rubygems.org/gems/sentry-ruby) gem.
Expand Down
6 changes: 5 additions & 1 deletion sentry-sanitizer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
spec.email = ['[email protected]']

spec.summary = %q{Sanitizing middleware for sentry-ruby gem}
spec.description = %q{Add missing sanitizing support for sentry-ruby (previous sentry-rav)}
spec.description = %q{Add missing sanitizing support for sentry-ruby (previous sentry-raven)}
spec.homepage = 'https://github.com/mrexox/sentry-sanitizer'
spec.license = 'BSD'

Expand All @@ -27,6 +27,10 @@ Gem::Specification.new do |spec|

spec.require_paths = ['lib']

# Codecov
spec.add_development_dependency 'codecov'
spec.add_development_dependency 'simplecov', '~> 0.18.5'

spec.add_development_dependency 'bundler', '>= 1.17'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
Expand Down
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
require 'bundler/setup'
require 'sentry/sanitizer'

if ENV['CI'] == 'true'
require 'simplecov'
require 'codecov'

SimpleCov.start
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
Expand Down

0 comments on commit f3e4f6c

Please sign in to comment.