Skip to content

Commit

Permalink
CI: Make sure which version of RuboCop we are using
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Jun 11, 2024
1 parent 884310c commit 734957b
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 734957b

Please sign in to comment.