Add codecov

This commit is contained in:
Georg Gadinger 2020-04-30 20:12:13 +02:00
parent 75fc542bc2
commit 5bb94927a2
4 changed files with 13 additions and 6 deletions

View File

@ -65,5 +65,6 @@ jobs:
- name: Run tests - name: Run tests
run: bundle exec rake spec run: bundle exec rake spec
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
REDIS_URL: "redis://localhost:${{ job.services.redis.ports[6379] }}" REDIS_URL: "redis://localhost:${{ job.services.redis.ports[6379] }}"

View File

@ -98,7 +98,7 @@ group :development, :test do
gem 'poltergeist' gem 'poltergeist'
gem 'simplecov', require: false gem 'simplecov', require: false
gem 'simplecov-json', require: false gem 'simplecov-json', require: false
gem 'simplecov-rcov', require: false gem 'codecov', require: false
gem 'database_cleaner' gem 'database_cleaner'
gem 'better_errors' gem 'better_errors'
gem 'letter_opener' # Use this just in local test environments gem 'letter_opener' # Use this just in local test environments

View File

@ -100,6 +100,10 @@ GEM
xpath (~> 3.2) xpath (~> 3.2)
climate_control (0.2.0) climate_control (0.2.0)
cliver (0.3.2) cliver (0.3.2)
codecov (0.1.16)
json
simplecov
url
coderay (1.1.2) coderay (1.1.2)
coffee-rails (4.2.2) coffee-rails (4.2.2)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
@ -448,8 +452,6 @@ GEM
simplecov-json (0.2.1) simplecov-json (0.2.1)
json json
simplecov simplecov
simplecov-rcov (0.2.3)
simplecov (>= 0.4.1)
spring (2.1.0) spring (2.1.0)
sprockets (3.7.2) sprockets (3.7.2)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
@ -492,6 +494,7 @@ GEM
unicorn (5.5.4) unicorn (5.5.4)
kgio (~> 2.6) kgio (~> 2.6)
raindrops (~> 0.7) raindrops (~> 0.7)
url (0.3.2)
warden (1.2.8) warden (1.2.8)
rack (>= 2.0.6) rack (>= 2.0.6)
web-console (3.7.0) web-console (3.7.0)
@ -518,6 +521,7 @@ DEPENDENCIES
brakeman brakeman
byebug byebug
capybara capybara
codecov
coffee-rails (~> 4.1) coffee-rails (~> 4.1)
colorize colorize
database_cleaner database_cleaner
@ -574,7 +578,6 @@ DEPENDENCIES
sidekiq (< 6) sidekiq (< 6)
simplecov simplecov
simplecov-json simplecov-json
simplecov-rcov
spring (~> 2.0) spring (~> 2.0)
sweetalert-rails sweetalert-rails
timecop timecop

View File

@ -1,6 +1,9 @@
# frozen_string_literal: true # frozen_string_literal: true
require "simplecov" require "simplecov"
# require "simplecov-rcov"
# SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start "rails" SimpleCov.start "rails"
if ENV.key?("CODECOV_TOKEN")
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end