Skip to content

Commit

Permalink
Replace the obsolete coveralls gem with coverallsapp/github-action@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Apr 16, 2023
1 parent 402258e commit 47a709c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
- name: Run tests
run: bundle exec rake

- name: Coveralls
uses: coverallsapp/github-action@v1

ghcr-build-docker-images:
name: ghcr-docker-build-${{ matrix.docker_image }}
needs: run-tests
Expand Down
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ group :development do
group :test do
gem 'capybara', '~> 2.18'
gem 'capybara-screenshot'
gem 'capybara-select-2', github: 'Hirurg103/capybara_select2', ref: 'fbf22fb74dec10fa0edcd26da7c5184ba8fa2c76',
gem 'capybara-select-2', github: 'Hirurg103/capybara_select2',
ref: 'fbf22fb74dec10fa0edcd26da7c5184ba8fa2c76',
require: false
gem 'coveralls', require: false
gem 'poltergeist'
gem 'rails-controller-testing'
gem 'rr', require: false
Expand All @@ -171,6 +171,8 @@ group :development do
gem 'rspec-mocks'
gem 'rspec-rails'
gem 'shoulda-matchers'
gem 'simplecov', require: false
gem 'simplecov-lcov', '~> 0.8.0', require: false
gem 'vcr'
gem 'webmock', '~> 3.5.1'
end
Expand Down
24 changes: 8 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,6 @@ GEM
coffee-script-source (1.12.2)
concurrent-ruby (1.2.0)
cookiejar (0.3.3)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crack (0.4.5)
rexml
crass (1.0.6)
Expand Down Expand Up @@ -706,11 +700,13 @@ GEM
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simple_oauth (0.3.1)
simplecov (0.16.1)
simplecov (0.22.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
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 (1.0.0)
spectrum-rails (1.3.4)
railties (>= 3.1)
Expand All @@ -730,17 +726,12 @@ GEM
sshkit (1.21.2)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.10)
time (0.2.2)
date
timeout (0.3.1)
tins (1.31.0)
sync
trailblazer-option (0.1.2)
treetop (1.6.10)
polyglot (~> 0.3)
Expand Down Expand Up @@ -806,7 +797,6 @@ DEPENDENCIES
capybara-screenshot
capybara-select-2!
coffee-rails (~> 5)
coveralls
daemons (~> 1.1.9)
delayed_job
delayed_job_active_record
Expand Down Expand Up @@ -884,6 +874,8 @@ DEPENDENCIES
sass-rails (>= 6.0)
select2-rails (~> 3.5.4)
shoulda-matchers
simplecov
simplecov-lcov (~> 0.8.0)
slack-notifier (~> 1.0.0)
spectrum-rails
spring
Expand Down
14 changes: 11 additions & 3 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
require 'simplecov'
SimpleCov.start 'rails'
elsif ENV['CI'] == 'true'
require 'coveralls'
Coveralls.wear!('rails')
require 'simplecov'
SimpleCov.start 'rails' do
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = 'coverage/lcov.info'
end
formatter SimpleCov::Formatter::LcovFormatter
add_filter %w[version.rb initializer.rb]
end
end

require File.expand_path("../../config/environment", __FILE__)
require File.expand_path('../config/environment', __dir__)
require 'rspec/rails'
require 'webmock/rspec'

Expand Down

0 comments on commit 47a709c

Please sign in to comment.