Skip to content

Commit

Permalink
refactor: use simplecov-lcov
Browse files Browse the repository at this point in the history
  • Loading branch information
guidojw committed Oct 13, 2023
1 parent f3b30f6 commit 401969d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
sha: ${{ needs.merge.outputs.sha }}
secrets:
rails_master_key: ${{ secrets.RAILS_MASTER_KEY }}
codecov_token: ${{ secrets.CODECOV_TOKEN }}

publish_image:
name: Publish Image
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
rails_master_key:
description: The Rails master key
required: true
codecov_token:
description: Token for uploading Codecov reports
required: true

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ group :test do
gem 'rubocop-rails'
gem 'rubocop-rspec'
gem 'simplecov', require: false
gem 'simplecov-lcov', '~> 0.8.0', require: false
gem 'terminal-notifier-guard'
gem 'timecop'
end
Expand Down
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ GEM
activerecord
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
libv8-node (16.10.0.0)
libv8-node (16.10.0.0)
libv8-node (16.10.0.0-x86_64-linux)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
Expand All @@ -232,7 +232,7 @@ GEM
rake
mini_mime (1.1.2)
mini_portile2 (2.8.2)
mini_racer (0.6.2)
mini_racer (0.6.2)
libv8-node (~> 16.10.0.0)
minitest (5.18.0)
mollie-api-ruby (4.7.1)
Expand Down Expand Up @@ -468,6 +468,7 @@ GEM
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-lcov (0.8.0)
simplecov_json_formatter (0.1.4)
slack-notifier (2.4.0)
spring (2.1.1)
Expand Down Expand Up @@ -558,7 +559,7 @@ DEPENDENCIES
kaminari (~> 1.2.0)
listen
mina (~> 1.2.0)
mini_racer (~> 0.6.0)
mini_racer (~> 0.6.0)
mollie-api-ruby (~> 4.7.0)
net-imap
net-pop
Expand Down Expand Up @@ -593,6 +594,7 @@ DEPENDENCIES
sidekiq-scheduler (~> 5.0.2)
simple_form (~> 5.1.0)
simplecov
simplecov-lcov (~> 0.8.0)
slack-notifier (~> 2.4.0)
spring
spring-commands-rspec
Expand All @@ -609,4 +611,4 @@ DEPENDENCIES
wkhtmltopdf-binary

BUNDLED WITH
2.2.15
2.4.14
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'simplecov'
require 'simplecov-lcov'

SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start 'rails' do
add_filter 'app/controllers/'
add_filter 'app/jobs/'
Expand Down

0 comments on commit 401969d

Please sign in to comment.