Skip to content

Commit

Permalink
re-add sassc to gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
armandofox committed Sep 26, 2024
1 parent 7216990 commit ee6b411
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:

- name: run Cucumber tests and capture coverage
env:
GITHUB_ACTIONS_CHROMEDRIVER_PATH: ${{ steps.install-chromedriver.outputs.chromedriver-path }}
GITHUB_ACTIONS_CHROME_FOR_TESTING_PATH: ${{ steps.install-chromedriver.outputs.chrome-path }}
CHROMEDRIVER_PATH: ${{ steps.install-chromedriver.outputs.chromedriver-path }}
CHROME_FOR_TESTING_PATH: ${{ steps.install-chromedriver.outputs.chrome-path }}
run: |
bundle exec cucumber --retry 2 2>/dev/null
$CCTR format-coverage --output coverage/codeclimate.$SUITE.json --input-type simplecov
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ gem 'will_paginate'

# asset pipeline
gem 'sprockets-rails', :require => 'sprockets/railtie'
gem 'sassc-rails'
gem 'uglifier'

group :production do
Expand All @@ -50,7 +51,6 @@ group :test do
gem 'rspec-json_expectations'
gem 'rails-controller-testing' # for assigns()
gem 'simplecov', '0.17.1'
gem 'simplecov-cobertura'
gem 'timecop'
gem 'webmock'
gem 'vcr'
Expand Down
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ GEM
rspec-support (3.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (> 3.0)
sprockets-rails
tilt
selenium-webdriver (4.9.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
Expand Down Expand Up @@ -372,6 +380,7 @@ DEPENDENCIES
rspec-its
rspec-json_expectations
rspec-rails
sassc-rails
selenium-webdriver
simplecov (= 0.17.1)
simplecov-cobertura
Expand Down
8 changes: 6 additions & 2 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@
# npx @puppeteer/browsers install [email protected]
# (Note: these 'installs' just put stuff in the $cwd. brew install may be better)

path_to_chromedriver = ENV['GITHUB_ACTIONS_CHROMEDRIVER_PATH'] ||
path_to_chromedriver = ENV['CHROMEDRIVER_PATH'] ||
`find ~+/tmp -type f -name 'chromedriver'`.chomp

path_to_chrome_for_testing = ENV['GITHUB_ACTIONS_CHROME_FOR_TESTING_PATH'] ||
path_to_chrome_for_testing = ENV['CHROME_FOR_TESTING_PATH'] ||
`find ~+/tmp -type f -name 'Google Chrome for Testing'`.chomp

if (path_to_chromedriver.blank? || path_to_chrome_for_testing.blank?)
abort "Cannot find Chromedriver and/or ChromeForTesting binaries. Check wiki for instructions."
end

Capybara.register_driver :selenium_chrome_headless do |app|
options = Selenium::WebDriver::Chrome::Options.new.tap do |opts|
opts.add_argument '--headless'
Expand Down

0 comments on commit ee6b411

Please sign in to comment.