Skip to content

Commit d5c48e6

Browse files
bquorningydah
andcommitted
Add job for CI using Prism parser
Copied from rubocop/rubocop-capybara#112 Co-authored-by: ydah <[email protected]>
1 parent e80d28c commit d5c48e6

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
@@ -119,3 +119,24 @@ jobs:
119119
ruby-version: "3.3"
120120
bundler-cache: true
121121
- run: NO_COVERAGE=true bundle exec rake spec
122+
123+
prism:
124+
runs-on: ubuntu-latest
125+
name: Prism
126+
steps:
127+
- uses: actions/checkout@v4
128+
- name: Use prism parser
129+
run: |
130+
cat << EOF > Gemfile.local
131+
gem 'prism'
132+
EOF
133+
- name: set up Ruby
134+
uses: ruby/setup-ruby@v1
135+
with:
136+
# Specify the minimum Ruby version 2.7 required for Prism to run.
137+
ruby-version: "2.7"
138+
bundler-cache: true
139+
- env:
140+
NO_COVERAGE: true
141+
PARSER_ENGINE: parser_prism
142+
run: bundle exec rake spec

0 commit comments

Comments
 (0)