Skip to content

Commit 9fc3733

Browse files
committed
Reimplement coveralls
1 parent 18e25b3 commit 9fc3733

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,21 @@ jobs:
4747
env:
4848
JRUBY_OPTS: --debug
4949
run: bundle exec rake
50+
coveralls:
51+
runs-on: ubuntu-18.04
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: Set up Ruby
55+
uses: ruby/setup-ruby@v1
56+
with:
57+
ruby-version: 2.6
58+
bundler-cache: true
59+
- name: Install dependencies
60+
run: bundle install
61+
- name: Run tests
62+
run: bundle exec rake
63+
- name: Coveralls GitHub Action
64+
uses: coverallsapp/github-action@v1.1.2
65+
with:
66+
github-token: ${{ secrets.github_token }}
67+
path-to-lcov: './coverage/lcov/omniauth-oauth2.lcov'

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ gem "rake", "~> 12.0"
44

55
group :test do
66
gem "addressable", "~> 2.3.8", :platforms => %i[jruby ruby_18]
7-
gem "coveralls"
7+
gem 'coveralls_reborn', '~> 0.19.0', require: false
88
gem "json", :platforms => %i[jruby ruby_18 ruby_19]
99
gem "mime-types", "~> 1.25", :platforms => %i[jruby ruby_18]
1010
gem "rack-test"
1111
gem "rest-client", "~> 1.8.0", :platforms => %i[jruby ruby_18]
1212
gem "rspec", "~> 3.2"
1313
gem "rubocop", ">= 0.51", :platforms => %i[ruby_19 ruby_20 ruby_21 ruby_22 ruby_23 ruby_24]
14-
gem "simplecov", ">= 0.9"
14+
gem 'simplecov-lcov'
15+
gem 'tins', '~> 1.13', :platforms => %i[jruby_18 jruby_19 ruby_19]
1516
gem "webmock", "~> 3.0"
1617
end
1718

spec/helper.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33

44
if RUBY_VERSION >= "1.9"
55
require "simplecov"
6+
require "simplecov-lcov"
67
require "coveralls"
78

8-
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
9+
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
10+
11+
SimpleCov.formatters = [
12+
SimpleCov::Formatter::HTMLFormatter,
13+
SimpleCov::Formatter::LcovFormatter,
14+
Coveralls::SimpleCov::Formatter
15+
]
916

1017
SimpleCov.start do
1118
minimum_coverage(78.48)

0 commit comments

Comments
 (0)