File tree Expand file tree Collapse file tree 5 files changed +30
-28
lines changed Expand file tree Collapse file tree 5 files changed +30
-28
lines changed Original file line number Diff line number Diff line change 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'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ gem "rake", "~> 12.0"
44
55group :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"
1617end
1718
Original file line number Diff line number Diff line change 11# OmniAuth OAuth2
22
33[ ![ Gem Version] ( http://img.shields.io/gem/v/omniauth-oauth2.svg )] [ gem ]
4- [ ![ Build Status] ( http://img.shields.io/travis/omniauth/omniauth-oauth2.svg )] [ travis ]
54[ ![ Code Climate] ( http://img.shields.io/codeclimate/maintainability/intridea/omniauth-oauth2.svg )] [ codeclimate ]
65[ ![ Coverage Status] ( http://img.shields.io/coveralls/intridea/omniauth-oauth2.svg )] [ coveralls ]
76[ ![ Security] ( https://hakiri.io/github/omniauth/omniauth-oauth2/master.svg )] ( https://hakiri.io/github/omniauth/omniauth-oauth2/master )
87
98[ gem ] : https://rubygems.org/gems/omniauth-oauth2
10- [ travis ] : http://travis-ci.org/omniauth/omniauth-oauth2
119[ codeclimate ] : https://codeclimate.com/github/intridea/omniauth-oauth2
1210[ coveralls ] : https://coveralls.io/r/intridea/omniauth-oauth2
1311
@@ -32,7 +30,7 @@ module OmniAuth
3230 # This is where you pass the options you would pass when
3331 # initializing your consumer from the OAuth gem.
3432 option :client_options , {:site => " https://api.somesite.com" }
35-
33+
3634 # You may specify that your strategy should use PKCE by setting
3735 # the pkce option to true: https://tools.ietf.org/html/rfc7636
3836 option :pkce , true
Original file line number Diff line number Diff line change 33
44if 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 )
You can’t perform that action at this time.
0 commit comments