Skip to content

Commit

Permalink
Merge pull request #1920 from rubocop/debug-ci
Browse files Browse the repository at this point in the history
CI: Make sure which version of RuboCop we are using
  • Loading branch information
ydah authored Jun 11, 2024
2 parents 884310c + 734957b commit c9610cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
with:
ruby-version: "3.3"
bundler-cache: true
- run: bundle exec rubocop -V
- run: NO_COVERAGE=true bundle exec rake ${{ matrix.task }}

oldest-rubocop:
Expand All @@ -88,13 +89,14 @@ jobs:
- uses: actions/checkout@v4
- name: Use oldest RuboCop allowed by gemspec
run: |
sed -nr "s/spec.add_dependency 'rubocop', '~> ([0-9\.]+)'/gem 'rubocop', '= \1'/p" \
sed -nr "s/ *spec.add_dependency 'rubocop', '~> ([0-9\.]+)'/gem 'rubocop', '= \1'/p" \
rubocop-rspec.gemspec > Gemfile.local
cat Gemfile.local
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- run: bundle exec rubocop -V
- run: NO_COVERAGE=true bundle exec rake ${{ matrix.task }}

rspec4:
Expand Down

0 comments on commit c9610cf

Please sign in to comment.