File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,16 @@ jobs:
33
33
with :
34
34
ruby-version : ${{ matrix.ruby }}
35
35
bundler-cache : true
36
- - name : Install rubocop 1.78.0 for Ruby 3.0.0
37
- if : matrix.ruby == '3.0.0'
36
+ - name : Install rubocop conditionally based on Ruby version
38
37
run : |
39
- echo "Installing rubocop 1.78.0 for Ruby 3.0.0"
40
- gem install rubocop -v 1.78.0
38
+ echo "Ruby version: ${{ matrix.ruby }}"
39
+ if [[ "${{ matrix.ruby }}" == "3.0.0" ]]; then
40
+ echo "Installing rubocop 1.78.0 for Ruby 3.0.0"
41
+ gem install rubocop -v 1.78.0
42
+ else
43
+ echo "Installing latest rubocop"
44
+ gem install rubocop
45
+ fi
41
46
- name : Run linting
42
47
run : |
43
48
bundle exec rubocop
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ Gem::Specification.new do |spec|
25
25
spec . add_development_dependency 'coveralls_reborn'
26
26
spec . add_development_dependency 'rake'
27
27
spec . add_development_dependency 'rspec'
28
- spec . add_development_dependency 'rubocop'
29
28
spec . add_development_dependency 'webmock'
30
29
31
30
spec . add_runtime_dependency 'json-schema' , '>= 2.6'
You can’t perform that action at this time.
0 commit comments