Skip to content

Commit

Permalink
fix github actions to use geckodriver
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFelipe committed Nov 30, 2023
1 parent f0e6d49 commit ca75cfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -13,15 +13,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup chromedriver
uses: nanasess/setup-chromedriver@v2
- name: Start chromedriver
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
- name: Setup geckodriver
uses: browser-actions/setup-geckodriver@latest
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Set up database schema
Expand Down
2 changes: 2 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
"text/csv,text/tsv,text/xml,text/plain,application/pdf,application/doc,application/docx,image/jpeg,application/gzip,application/x-gzip"
options = Selenium::WebDriver::Firefox::Options.new
options.profile = profile
options.args << "--headless" unless ENV["BROWSER"]

Capybara::Selenium::Driver.new(
app,
browser: :firefox,
Expand Down

0 comments on commit ca75cfa

Please sign in to comment.