diff --git a/.github/workflows/lint-js-and-ruby.yml b/.github/workflows/lint-js-and-ruby.yml index d15a437ba..026551ca4 100644 --- a/.github/workflows/lint-js-and-ruby.yml +++ b/.github/workflows/lint-js-and-ruby.yml @@ -1,13 +1,18 @@ name: Lint JS and Ruby -on: [push, pull_request] + +on: + push: + branches: + - 'master' + pull_request: jobs: build: strategy: matrix: ruby: [3] - node: [18] + node: [20] runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a05710d1..f8e60e1ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,17 @@ name: Main test -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: jobs: build-dummy-app-webpack-test-bundles: strategy: matrix: ruby: [2.7, 3.2] - node: [16, 18] + node: [14, 20] runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -79,8 +83,8 @@ jobs: needs: build-dummy-app-webpack-test-bundles strategy: matrix: - ruby: [2.7] - node: [14] + ruby: [2.7, 3.2] + node: [14, 20] rake_task: ['run_rspec:all_but_examples', 'run_rspec:examples'] runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/package-js-tests.yml b/.github/workflows/package-js-tests.yml index 3a588eaab..99428560b 100644 --- a/.github/workflows/package-js-tests.yml +++ b/.github/workflows/package-js-tests.yml @@ -1,12 +1,17 @@ name: JS unit tests for Renderer package -on: [push, pull_request] + +on: + push: + branches: + - 'master' + pull_request: jobs: build: strategy: matrix: - node: [16, 18] + node: [14, 20] runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/rspec-package-specs.yml b/.github/workflows/rspec-package-specs.yml index a31a4ea42..1e5bc0592 100644 --- a/.github/workflows/rspec-package-specs.yml +++ b/.github/workflows/rspec-package-specs.yml @@ -1,13 +1,17 @@ name: Rspec test for gem -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: jobs: build: strategy: matrix: ruby: [2.7, 3.2] - node: [16, 18] + node: [14, 20] runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/Gemfile.development_dependencies b/Gemfile.development_dependencies index 74352b14a..e05477d61 100644 --- a/Gemfile.development_dependencies +++ b/Gemfile.development_dependencies @@ -7,7 +7,7 @@ gem "sqlite3" gem "sass-rails", "~> 6.0" gem "uglifier" gem "jquery-rails" -gem "puma", "~> 5.0" +gem "puma", "~> 6.0" gem "bundler", "2.4.17" # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks @@ -46,5 +46,6 @@ group :test do gem "rspec_junit_formatter" gem "rspec-rails" gem "rspec-retry" - gem "selenium-webdriver" + gem "selenium-webdriver", "4.9.0" + gem "webdrivers", "5.3.0" end diff --git a/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb b/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb index 0a8093a9f..d1e7212d8 100644 --- a/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb +++ b/lib/react_on_rails/server_rendering_pool/ruby_embedded_java_script.rb @@ -5,8 +5,8 @@ module ReactOnRails module ServerRenderingPool + # rubocop:disable Metrics/ClassLength class RubyEmbeddedJavaScript - # rubocop:disable Metrics/ClassLength class << self def reset_pool options = { diff --git a/spec/dummy/Gemfile.lock b/spec/dummy/Gemfile.lock index 4a9e785e1..def2fa5e7 100644 --- a/spec/dummy/Gemfile.lock +++ b/spec/dummy/Gemfile.lock @@ -186,7 +186,7 @@ GEM psych (5.1.0) stringio public_suffix (5.0.3) - puma (5.6.6) + puma (6.4.0) nio4r (~> 2.0) racc (1.7.1) rack (2.2.8) @@ -298,7 +298,7 @@ GEM sass (~> 3.5, >= 3.5.5) sdoc (2.6.1) rdoc (>= 5.0) - selenium-webdriver (4.11.0) + selenium-webdriver (4.9.0) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) @@ -340,6 +340,10 @@ GEM uglifier (4.2.0) execjs (>= 0.3.0, < 3) unicode-display_width (2.4.2) + webdrivers (5.3.0) + nokogiri (~> 1.6) + rubyzip (>= 1.3.0) + selenium-webdriver (~> 4.0, < 4.11) websocket (1.2.9) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) @@ -370,25 +374,26 @@ DEPENDENCIES pry-doc pry-rails pry-rescue - puma (~> 5.0) + puma (~> 6.0) rails (~> 7.0, >= 7.0.1) react_on_rails! rspec-rails rspec-retry rspec_junit_formatter rubocop (~> 1.56) - rubocop-performance - rubocop-rspec + rubocop-performance (~> 1.18.0) + rubocop-rspec (~> 2.23.2) sass-rails (~> 6.0) scss_lint sdoc - selenium-webdriver + selenium-webdriver (= 4.9.0) shakapacker (= 7.0.1) spring (~> 4.0) sprockets (~> 4.0) sqlite3 turbolinks uglifier + webdrivers (= 5.3.0) BUNDLED WITH 2.4.17