Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
axelpontetto committed Sep 18, 2024
1 parent dfb8092 commit 212172a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
KNAPSACK_CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
KNAPSACK_CI_NODE_INDEX: ${{ matrix.ci_node_index }}
PARALLEL_TESTS_CONCURRENCY: ${{ env.cpu_cores }}
run: docker run --network host -e PARALLEL_TESTS_CONCURRENCY=$PARALLEL_TESTS_CONCURRENCY -e KNAPSACK_CI_NODE_TOTAL=$KNAPSACK_CI_NODE_TOTAL -e KNAPSACK_CI_NODE_INDEX=$KNAPSACK_CI_NODE_INDEX -e RAILS_ENV=test -e HEADLESS=true -e CI=true -e CHROME_PATH=/usr/local/share/chrome_driver/chromedriver api_base/test:latest bundle exec parallel_rspec -n $PARALLEL_TESTS_CONCURRENCY -e './bin/parallel_tests'
run: docker run --network host -e PARALLEL_TESTS_CONCURRENCY=$PARALLEL_TESTS_CONCURRENCY -e KNAPSACK_CI_NODE_TOTAL=$KNAPSACK_CI_NODE_TOTAL -e KNAPSACK_CI_NODE_INDEX=$KNAPSACK_CI_NODE_INDEX -e RAILS_ENV=test -e HEADLESS=true -e CI=true api_base/test:latest bundle exec parallel_rspec -n $PARALLEL_TESTS_CONCURRENCY -e './bin/parallel_tests'
# - name: Check for missing annotations
# run: bundle exec annotate
# - name: Check for untracked changes in app and spec directories
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

browser = ENV.fetch('SELENIUM_BROWSER', 'chrome')

Selenium::WebDriver::Chrome.path = ENV.fetch('CHROME_PATH', nil) if browser == 'chrome'

Capybara.register_driver :chrome do |app|
args = %w[no-sandbox disable-gpu disable-dev-shm-usage]
args << (ENV['HEADLESS'] == 'true' ? 'headless' : 'non-headless')
Expand Down

0 comments on commit 212172a

Please sign in to comment.