Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/cruby-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ on:

jobs:
test-all:
strategy:
matrix:
# Some tests in this repository are only run against parse.y
# We test them here in order to not fail ruby/ruby CI.
parser:
- prism
- parse.y

runs-on: ubuntu-24.04
steps:
- name: Set up latest ruby head
Expand Down Expand Up @@ -39,9 +47,11 @@ jobs:
run: |
ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
autoconf
./configure -C --disable-install-doc
./configure -C --disable-install-doc --with-parser=${{ matrix.parser }}
make -j$(nproc)
working-directory: ruby/ruby
- name: make test-all
env:
RUN_OPTS: --parser=${{ matrix.parser }}
run: make -j$(nproc) -s test-all
working-directory: ruby/ruby
6 changes: 6 additions & 0 deletions test/prism/fixtures_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class FixturesTest < TestCase
except << "3.4/circular_parameters.txt"
end

# Valid only on Ruby 3.3
except << "3.3-3.3/block_args_in_array_assignment.txt"
except << "3.3-3.3/it_with_ordinary_parameter.txt"
except << "3.3-3.3/keyword_args_in_array_assignment.txt"
except << "3.3-3.3/return_in_sclass.txt"

# Leaving these out until they are supported by parse.y.
except << "3.5/leading_logical.txt"
except << "3.5/endless_methods_command_call.txt"
Expand Down
6 changes: 6 additions & 0 deletions test/prism/locals_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class LocalsTest < TestCase
# CRuby is eliminating dead code.
"whitequark/ruby_bug_10653.txt",

# Valid only on Ruby 3.3
"3.3-3.3/block_args_in_array_assignment.txt",
"3.3-3.3/it_with_ordinary_parameter.txt",
"3.3-3.3/keyword_args_in_array_assignment.txt",
"3.3-3.3/return_in_sclass.txt",

# Leaving these out until they are supported by parse.y.
"3.5/leading_logical.txt",
"3.5/endless_methods_command_call.txt",
Expand Down