Skip to content

Commit 1719fc6

Browse files
committed
Add job for CI using Prism parser
Follow up rubocop/rubocop-ast#277
1 parent 6c8deaf commit 1719fc6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,24 @@ jobs:
9696
ruby-version: "3.3"
9797
bundler-cache: true
9898
- run: NO_COVERAGE=true bundle exec rake spec
99+
100+
prism:
101+
runs-on: ubuntu-latest
102+
name: Prism
103+
steps:
104+
- uses: actions/checkout@v4
105+
- name: Use prism parser
106+
run: |
107+
cat << EOF > Gemfile.local
108+
gem 'prism'
109+
EOF
110+
- name: set up Ruby
111+
uses: ruby/setup-ruby@v1
112+
with:
113+
# Specify the minimum Ruby version 2.7 required for Prism to run.
114+
ruby-version: 2.7
115+
bundler-cache: true
116+
- name: spec
117+
env:
118+
PARSER_ENGINE: parser_prism
119+
run: NO_COVERAGE=true bundle exec rake spec

0 commit comments

Comments
 (0)