Point website to https://watir.github.io/ meanwhile (#978) #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Edge Tests | |
on: | |
- workflow_dispatch | |
- push | |
- pull_request | |
jobs: | |
local-tests: | |
name: Local Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-11, windows-latest] | |
ruby: [ 3.0, 3.2 ] | |
steps: | |
- name: Checkout source tree | |
uses: actions/checkout@v2 | |
- name: Set Windows resolution | |
if: matrix.os == 'windows-latest' | |
run: Set-DisplayResolution -Width 1920 -Height 1080 -Force | |
- name: Set Mac resolution | |
if: ${{ matrix.os == 'macos-11' }} | |
run: | | |
system_profiler SPDisplaysDataType | grep Resolution | |
"/Library/Application Support/VMware Tools/vmware-resolutionSet" 2560 1440 | |
system_profiler SPDisplaysDataType | grep Resolution | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install gems | |
run: bundle install | |
- name: Remove driver directories Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
rm "$env:EdgeWebDriver" -r -v | |
- name: Remove driver directories Non-Windows | |
if: matrix.os != 'windows-latest' | |
run: | | |
sudo rm -rf $EDGEWEBDRIVER | |
- name: Run tests | |
run: bundle exec rake spec:edge |