Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepping project for new work, doing cleanup #45

Merged
merged 2 commits into from
Aug 29, 2023
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
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
experimental: true

steps:
- name: Pin chrome
uses: abhi1693/[email protected]
with:
browser: chrome
version: 1036826
- name: Install OS packages
run: |
sudo apt-get update
Expand Down Expand Up @@ -112,4 +117,4 @@ jobs:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ config/secrets.yml
config/solr.yml
config/sidekiq.yml
config/tufts.yml
config/tufts_export.yml
public/assets/
public/branding/
fits.log
Expand Down
6 changes: 6 additions & 0 deletions config/tufts_export.yml.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
development:
export_path: ''
test:
export_path: ''
production:
export_path: '/usr/local/hydra/mira-data/exports'
5 changes: 5 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'simplecov'
require 'webdrivers'

SimpleCov.start 'rails' do
if ENV['CI']
Expand Down Expand Up @@ -29,11 +30,15 @@

Capybara.server = :webrick

Webdrivers::Chromedriver.required_version = '106.0.5249.21'
custom_chrome_path = '/opt/hostedtoolcache/chromium/1036826/x64/chrome'

# Adding chromedriver for js testing.
Capybara.register_driver :headless_chrome do |app|
browser_options = ::Selenium::WebDriver::Chrome::Options.new
browser_options.headless!
browser_options.args << '--window-size=1920,1080'
browser_options.binary = custom_chrome_path
Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
end

Expand Down
Loading