Skip to content

Commit bddfd6e

Browse files
dvandersluismarcandre
authored andcommitted
Fix build error by keeping prism below 1.5.0 for older RuboCop
1 parent f7e25f9 commit bddfd6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ jobs:
9494
ruby-version: ${{ matrix.ruby }}
9595
- name: install rubocop from source for full specs
9696
run: git clone --branch $RUBOCOP_VERSION https://github.com/rubocop/rubocop.git ../rubocop
97+
- name: prevent prism from breaking tests on older RuboCop
98+
# FIXME: Remove when the next prism version is released.
99+
# See https://github.com/rubocop/rubocop/pull/14526
100+
if: matrix.rubocop == 'v1.72.1'
101+
run: cd ../rubocop && sed -i "s/gem 'prism'.*$/gem 'prism', '< 1.5.0'/" Gemfile
97102
- name: install rubocop dependencies
98103
run: cd ../rubocop && bundle install --jobs 3 --retry 3
99104
- name: install dependencies

0 commit comments

Comments
 (0)