diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a30d3195c..9b00f9b29 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,14 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.2", "jruby-9.2"] + ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.2", "3.0.0", "jruby-9.2"] test_command: ["bundle exec rake test"] include: - ruby: "head" test_command: "bundle exec rake test || true" - ruby: "truffleruby" test_command: "bundle exec rake test || true" - - ruby: "2.7.2" + - ruby: "3.0.0" test_command: "./ci/run_rubocop_specs || true" steps: - uses: actions/checkout@v2 diff --git a/lib/parser/current.rb b/lib/parser/current.rb index 326ad6dd1..5f84bdff0 100644 --- a/lib/parser/current.rb +++ b/lib/parser/current.rb @@ -94,8 +94,8 @@ def warn_syntax_deviation(feature, version) else # :nocov: # Keep this in sync with released Ruby. - warn_syntax_deviation 'parser/ruby27', '2.7.x' - require 'parser/ruby27' - CurrentRuby = Ruby27 + warn_syntax_deviation 'parser/ruby30', '3.0.x' + require 'parser/ruby30' + CurrentRuby = Ruby30 end end