Skip to content

Commit

Permalink
Reimplement coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbyMcWho committed Jan 12, 2021
1 parent 18e25b3 commit 9fc3733
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -47,3 +47,21 @@ jobs:
env:
JRUBY_OPTS: --debug
run: bundle exec rake
coveralls:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/lcov/omniauth-oauth2.lcov'
5 changes: 3 additions & 2 deletions Gemfile
Expand Up @@ -4,14 +4,15 @@ gem "rake", "~> 12.0"

group :test do
gem "addressable", "~> 2.3.8", :platforms => %i[jruby ruby_18]
gem "coveralls"
gem 'coveralls_reborn', '~> 0.19.0', require: false
gem "json", :platforms => %i[jruby ruby_18 ruby_19]
gem "mime-types", "~> 1.25", :platforms => %i[jruby ruby_18]
gem "rack-test"
gem "rest-client", "~> 1.8.0", :platforms => %i[jruby ruby_18]
gem "rspec", "~> 3.2"
gem "rubocop", ">= 0.51", :platforms => %i[ruby_19 ruby_20 ruby_21 ruby_22 ruby_23 ruby_24]
gem "simplecov", ">= 0.9"
gem 'simplecov-lcov'
gem 'tins', '~> 1.13', :platforms => %i[jruby_18 jruby_19 ruby_19]
gem "webmock", "~> 3.0"
end

Expand Down
9 changes: 8 additions & 1 deletion spec/helper.rb
Expand Up @@ -3,9 +3,16 @@

if RUBY_VERSION >= "1.9"
require "simplecov"
require "simplecov-lcov"
require "coveralls"

SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true

SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
minimum_coverage(78.48)
Expand Down

0 comments on commit 9fc3733

Please sign in to comment.