Skip to content

Commit 413770b

Browse files
authored
Merge pull request #2110 from Earlopain/fix-ci-ruby-2.7
Fix CI on ruby 2.7
2 parents c464411 + 301f1a1 commit 413770b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ jobs:
128128
name: Prism
129129
steps:
130130
- uses: actions/checkout@v5
131-
- name: Use prism parser
132-
run: |
133-
cat << EOF > Gemfile.local
134-
gem 'prism'
135-
EOF
136131
- name: set up Ruby
137132
uses: ruby/setup-ruby@v1
138133
with:

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ gem 'rubocop-rake', '~> 0.7'
1313
gem 'simplecov', '>= 0.19'
1414
gem 'yard'
1515

16+
# FIXME: Remove when the next prism version is released.
17+
if RUBY_VERSION < '3.0' || RUBY_ENGINE == 'jruby'
18+
gem 'prism', '!= 1.5.0', '!= 1.5.1'
19+
end
20+
1621
local_gemfile = 'Gemfile.local'
1722
eval_gemfile(local_gemfile) if File.exist?(local_gemfile)

0 commit comments

Comments
 (0)