File tree Expand file tree Collapse file tree 8 files changed +147
-25
lines changed
Expand file tree Collapse file tree 8 files changed +147
-25
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : bundler
4+ directory : " /"
5+ schedule :
6+ interval : daily
7+ time : " 04:30"
8+ open-pull-requests-limit : 10
Original file line number Diff line number Diff line change 1+ name : Code Style Checks
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - ' *-maintenance'
8+ - ' *-dev'
9+ tags :
10+ - ' !*' # Do not execute on tags
11+ pull_request :
12+ branches :
13+ - ' *'
14+
15+ jobs :
16+ rubocop :
17+ name : Rubocop
18+ if : " !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ ruby :
23+ - 2.6
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v2
28+ - name : Setup Ruby & Bundle
29+ uses : ruby/setup-ruby@v1
30+ with :
31+ ruby-version : ${{ matrix.ruby }}
32+ bundler-cache : true
33+ - name : Run Rubocop
34+ run : bundle exec rubocop -DESP
Original file line number Diff line number Diff line change 1+ name : Supported Rubies
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - ' *-maintenance'
8+ - ' *-dev'
9+ tags :
10+ - ' !*' # Do not execute on tags
11+ pull_request :
12+ branches :
13+ - ' *'
14+
15+ jobs :
16+ test :
17+ name : Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
18+ if : " !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ ruby :
23+ - truffleruby-head
24+ - ruby-head
25+ - 3.0
26+ - 2.7
27+ - 2.6
28+ runs-on : ubuntu-latest
29+ continue-on-error : ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
30+ steps :
31+ - uses : amancevice/setup-code-climate@v0
32+ name : CodeClimate Install
33+ if : matrix.ruby == '2.6' && github.event_name != 'pull_request'
34+ with :
35+ cc_test_reporter_id : ${{ secrets.CC_TEST_REPORTER_ID }}
36+ - name : Checkout
37+ uses : actions/checkout@v2
38+ - name : Setup Ruby & Bundle
39+ uses : ruby/setup-ruby@v1
40+ with :
41+ ruby-version : ${{ matrix.ruby }}
42+ bundler-cache : true
43+ - name : CodeClimate Pre-build Notification
44+ run : cc-test-reporter before-build
45+ if : matrix.ruby == '2.6' && github.event_name != 'pull_request'
46+ continue-on-error : ${{ matrix.allow_failures != 'false' }}
47+ - name : Run tests
48+ run : bundle exec rake test
49+ - uses : codecov/codecov-action@v2
50+ with :
51+ flags : unittests
52+ name : codecov-upload
53+ fail_ci_if_error : true
54+ - name : CodeClimate Post-build Notification
55+ run : cc-test-reporter after-build
56+ if : matrix.ruby == '2.6' && github.event_name != 'pull_request' && always()
57+ continue-on-error : ${{ matrix.allow_failures != 'false' }}
Original file line number Diff line number Diff line change 1+ name : Unsupported Rubies
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - ' *-maintenance'
8+ - ' *-dev'
9+ tags :
10+ - ' !*' # Do not execute on tags
11+ pull_request :
12+ branches :
13+ - ' *'
14+
15+ jobs :
16+ test :
17+ name : Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
18+ if : " !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ ruby :
23+ - 2.5
24+ - 2.4
25+ - 2.3
26+ runs-on : ubuntu-18.04
27+ continue-on-error : ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v2
31+ - name : Setup Ruby & Bundle
32+ uses : ruby/setup-ruby@v1
33+ with :
34+ ruby-version : ${{ matrix.ruby }}
35+ bundler-cache : true
36+ - name : Run tests
37+ run : bundle exec rake test
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ SimpleCov . start do
4+ add_filter "/spec/"
5+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
4545 spec . add_development_dependency ( "em-http-request" , "~> 1.1.7" )
4646 spec . add_development_dependency ( "curb" )
4747 spec . add_development_dependency ( "webmock" , "< 2.0" )
48- spec . add_development_dependency ( "codeclimate-test-reporter" )
49- spec . add_development_dependency ( "simplecov" )
5048 spec . add_development_dependency ( "rest-client" )
49+ spec . add_development_dependency ( "simplecov" )
50+ spec . add_development_dependency ( "simplecov-cobertura" , "~> 1.4" )
5151end
Original file line number Diff line number Diff line change 22
33ENV [ 'RACK_ENV' ] = 'test'
44
5- # simplecov, Travis will call codeclimate
6-
7- require ' simplecov'
8- SimpleCov . start
5+ # Code coverage
6+ require "simplecov"
7+ require " simplecov-cobertura"
8+ SimpleCov . formatter = SimpleCov :: Formatter :: CoberturaFormatter unless ENV [ "HTML_COVERAGE" ] == "true"
99
1010# require third-party code
1111
You can’t perform that action at this time.
0 commit comments