File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,14 @@ jobs:
33
33
with :
34
34
ruby-version : ${{ matrix.ruby }}
35
35
bundler-cache : true
36
- - name : Install rubocop conditionally based on Ruby version
36
+ - name : Install rubocop conditionally in Gemfile
37
37
run : |
38
38
echo "Ruby version: ${{ matrix.ruby }}"
39
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
40
+ echo "Adding rubocop 1.78.0 to Gemfile"
41
+ bundle add rubocop --version 1.78.0 || true
45
42
fi
43
+ bundle install
46
44
- name : Run linting
47
45
run : |
48
46
bundle exec rubocop
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ 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'
28
29
spec . add_development_dependency 'webmock'
29
30
30
31
spec . add_runtime_dependency 'json-schema' , '>= 2.6'
You can’t perform that action at this time.
0 commit comments