Skip to content

do not support Selenium > 4.11 #105

do not support Selenium > 4.11

do not support Selenium > 4.11 #105

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
lint:
name: Linter Tests
runs-on: ubuntu-latest
steps:
- name: Cancel any previous run(s) on new commit push
uses: styfle/cancel-workflow-action@0.7.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rubocop
run: bundle exec rake rubocop
test-selenium:
name: Selenium Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby-version: [2.6, 3.2, jruby]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Link libc++.dylib for msedgedriver
# Work around for msedgedriver releases, like v86 and v87, that require libc++.dylib to run.
# This file is included in the zip with the driver, but not all drivers, like v88 and v89,
# need/include this.
# The macOS image has v86 available with this lib for now, so temporarily using it from there.
# Will implement a more permanent solution if future driver releases continue to intermittently
# or permanently require this.
run: |
if [ -f "/usr/local/share/edge_driver/libc++.dylib" ]; then
mkdir ~/.webdrivers
ln -s /usr/local/share/edge_driver/libc++.dylib ~/.webdrivers/libc++.dylib
fi
if: ${{ matrix.os == 'macos-10.15' }}
- name: Run tests
run: bundle exec rake spec