From d5c48e602bad4d8ac3570780243dd449dab79147 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Thu, 17 Oct 2024 13:26:39 +0200 Subject: [PATCH] Add job for CI using Prism parser Copied from https://github.com/rubocop/rubocop-capybara/pull/112 Co-authored-by: ydah --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 785a677df..ce87855bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -119,3 +119,24 @@ jobs: ruby-version: "3.3" bundler-cache: true - run: NO_COVERAGE=true bundle exec rake spec + + prism: + runs-on: ubuntu-latest + name: Prism + steps: + - uses: actions/checkout@v4 + - name: Use prism parser + run: | + cat << EOF > Gemfile.local + gem 'prism' + EOF + - name: set up Ruby + uses: ruby/setup-ruby@v1 + with: + # Specify the minimum Ruby version 2.7 required for Prism to run. + ruby-version: "2.7" + bundler-cache: true + - env: + NO_COVERAGE: true + PARSER_ENGINE: parser_prism + run: bundle exec rake spec