Skip to content

Commit a3e6b06

Browse files
[FSSDK-11723] fix: rubocop failing on ruby 3.0.0 (#371)
* update: change Ruby version from 3.0.0 to 3.0.1 in CI workflow * update: revert Ruby version to 3.0.0 in CI workflow and pin rubocop version * update: add auto-correction step for rubocop in CI workflow
1 parent 1135958 commit a3e6b06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
with:
3434
ruby-version: ${{ matrix.ruby }}
3535
bundler-cache: true
36+
- name: Install rubocop 1.78.0 for Ruby 3.0.0
37+
if: matrix.ruby == '3.0.0'
38+
run: |
39+
echo "Installing rubocop 1.78.0 for Ruby 3.0.0"
40+
bundle add rubocop --version 1.78.0 || true
41+
bundle install
42+
bundle exec rubocop -A Gemfile || true
3643
- name: Run linting
3744
run: |
3845
bundle exec rubocop

0 commit comments

Comments
 (0)