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:
3333 with :
3434 ruby-version : ${{ matrix.ruby }}
3535 bundler-cache : true
36- - name : Install rubocop conditionally based on Ruby version
36+ - name : Install rubocop conditionally in Gemfile
3737 run : |
3838 echo "Ruby version: ${{ matrix.ruby }}"
3939 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
4542 fi
43+ bundle install
4644 - name : Run linting
4745 run : |
4846 bundle exec rubocop
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
2525 spec . add_development_dependency 'coveralls_reborn'
2626 spec . add_development_dependency 'rake'
2727 spec . add_development_dependency 'rspec'
28+ spec . add_development_dependency 'rubocop'
2829 spec . add_development_dependency 'webmock'
2930
3031 spec . add_runtime_dependency 'json-schema' , '>= 2.6'
You can’t perform that action at this time.
0 commit comments