Skip to content

Commit 734957b

Browse files
committed
CI: Make sure which version of RuboCop we are using
1 parent 884310c commit 734957b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
with:
7676
ruby-version: "3.3"
7777
bundler-cache: true
78+
- run: bundle exec rubocop -V
7879
- run: NO_COVERAGE=true bundle exec rake ${{ matrix.task }}
7980

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

100102
rspec4:

0 commit comments

Comments
 (0)