File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,6 +3,23 @@ name: ruby-saml CI
33on : [push, pull_request]
44
55jobs :
6+ rubocop :
7+ runs-on : ubuntu-latest
8+ env :
9+ CI : true
10+ TESTOPTS : ' -v'
11+ steps :
12+ - uses : actions/checkout@v3
13+ - name : Set up Ruby 3.3
14+ uses : ruby/setup-ruby@v1
15+ with :
16+ ruby-version : 3.3
17+ bundler-cache : true
18+ - name : Install dependencies
19+ run : bundle install
20+ - name : Run RuboCop
21+ run : bundle exec rubocop --parallel
22+
623 test :
724 name : Unit test
825 strategy :
4057
4158 - name : Coveralls
4259 uses : coverallsapp/github-action@master
43- # 2023/03/07 - Simplecov is not working on TruffleRuby.
44- # TruffleRuby tests are otherwise passing.
45- if : ${{ matrix.ruby-version != 'truffleruby' }}
4660 with :
4761 github-token : ${{ secrets.github_token }}
4862 parallel : true
Original file line number Diff line number Diff line change 1- # 2023/03/07 - Simplecov is not working on TruffleRuby.
2- unless defined? ( TruffleRuby )
3- require 'simplecov'
4- require 'simplecov-lcov'
5- SimpleCov ::Formatter ::LcovFormatter . config . report_with_single_file = true
6- SimpleCov ::Formatter ::LcovFormatter . config . output_directory = 'coverage'
7- SimpleCov ::Formatter ::LcovFormatter . config . lcov_file_name = 'lcov.info'
8- SimpleCov . formatter = SimpleCov ::Formatter ::LcovFormatter
9- SimpleCov . start do
10- add_filter "test/"
11- add_filter "vendor/"
12- add_filter "lib/ruby_saml/logging.rb"
13- end
1+ require 'simplecov'
2+ require 'simplecov-lcov'
3+ SimpleCov ::Formatter ::LcovFormatter . config . report_with_single_file = true
4+ SimpleCov ::Formatter ::LcovFormatter . config . output_directory = 'coverage'
5+ SimpleCov ::Formatter ::LcovFormatter . config . lcov_file_name = 'lcov.info'
6+ SimpleCov . formatter = SimpleCov ::Formatter ::LcovFormatter
7+ SimpleCov . start do
8+ add_filter "test/"
9+ add_filter "vendor/"
10+ add_filter "lib/ruby_saml/logging.rb"
1411end
1512
1613require 'stringio'
You can’t perform that action at this time.
0 commit comments