Skip to content

Commit

Permalink
pinning version of chrome to 127 (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlvallelonga authored Oct 1, 2024
1 parent fafded4 commit eeaec80
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Ruby on Rails CI
on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,8 +69,16 @@ jobs:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/hostedgpt_test"
DISPLAY: "=:99"
CHROME_VERSION: "127.0.6533.119"

steps:
- name: Install Chrome
run: |
# Download specific Chrome version
wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb
# Install Chrome
sudo apt-get install -y --allow-downgrades ./google-chrome-stable_${CHROME_VERSION}-1_amd64.deb
- uses: nanasess/setup-chromedriver@v2
- name: Start chromedriver
run: |
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver", "~> 4.23.0"
gem "selenium-webdriver"
gem "minitest-stub_any_instance"
gem "rails-controller-testing"
end
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ GEM
base64
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
logger (1.6.0)
logger (1.6.1)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -314,7 +314,7 @@ GEM
regexp_parser (2.8.3)
reline (0.4.3)
io-console (~> 0.5)
rexml (3.2.6)
rexml (3.3.8)
rubocop (1.57.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -358,7 +358,7 @@ GEM
racc (~> 1.5)
sexp_processor (~> 4.16)
rubyzip (2.3.2)
selenium-webdriver (4.23.0)
selenium-webdriver (4.25.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
Expand Down Expand Up @@ -475,7 +475,7 @@ DEPENDENCIES
rubocop-rails
ruby-lsp
ruby-openai (~> 7.0.1)
selenium-webdriver (~> 4.23.0)
selenium-webdriver
solid_queue (~> 0.2.1)
sprockets-rails
standard
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "rails/test_help"
require "minitest/autorun"
require "pry"

Dir[Rails.root.join("test/support/**/*.rb")].sort.each { |file| require file }

Dir[File.join(Rails.root, "lib", "rails_extensions", "**/*.rb")].each do |path|
Expand Down

0 comments on commit eeaec80

Please sign in to comment.