Add coverall.io support

This commit is contained in:
Mariani Lucas 2020-08-25 10:14:59 -03:00
parent cc3d35603c
commit ec0479c7cc
3 changed files with 19 additions and 0 deletions

View File

@ -30,6 +30,12 @@ jobs:
gem install bundler --no-document gem install bundler --no-document
bundle install --jobs 4 --retry 3 bundle install --jobs 4 --retry 3
bundle exec rake bundle exec rake
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Rubocop lint name: Rubocop lint

View File

@ -8,3 +8,5 @@ gemspec
gem 'pry' gem 'pry'
gem 'rubocop' gem 'rubocop'
gem 'rubocop-performance' gem 'rubocop-performance'
gem 'simplecov'
gem 'simplecov-lcov'

View File

@ -2,6 +2,17 @@
require 'rspec' require 'rspec'
require 'webmock/rspec' require 'webmock/rspec'
require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov::Formatter::LcovFormatter.config do |c|
c.output_directory = 'coverage'
c.lcov_file_name = 'lcov.info'
c.single_report_path = 'coverage/lcov.info'
end
SimpleCov.start
require File.expand_path('../lib/sonarqube', __dir__) require File.expand_path('../lib/sonarqube', __dir__)