Skip to content
Open
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
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ jobs:
matrix:
os: [ubuntu-latest]
ruby: ['2.6', '2.7']
selenium: ['']
include:
- os: ubuntu-latest
ruby: '3.3'
selenium: '4.50.0'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Low] Only Ruby 3 leg pins Selenium 4.50.0

4.51.0 is already published, and the pin will fall behind.

Suggestion: Add a Ruby 3 leg with selenium: '' (latest), or bump the pin regularly.

Reviewer: stack-percy-web-sdks-code-reviewer

runs-on: ${{ matrix.os }}
env:
SELENIUM_VERSION: ${{ matrix.selenium }}
steps:
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
Expand All @@ -35,8 +42,8 @@ jobs:
- uses: actions/cache@v3
with:
path: "./vendor/bundle"
key: v1/${{ runner.os }}/ruby-${{ matrix.ruby }}/${{ hashFiles('**/Gemfile.lock') }}
restore-keys: v1/${{ runner.os }}/ruby-${{ matrix.ruby }}/
key: v1/${{ runner.os }}/ruby-${{ matrix.ruby }}-selenium-${{ matrix.selenium }}/${{ hashFiles('**/Gemfile.lock') }}
restore-keys: v1/${{ runner.os }}/ruby-${{ matrix.ruby }}-selenium-${{ matrix.selenium }}/
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ source "https://rubygems.org"
# Specify your gem's dependencies in percy-selenium.gemspec
gemspec

# Lets CI certify a specific Selenium release (e.g. SELENIUM_VERSION=4.50.0).
selenium_version = ENV.fetch("SELENIUM_VERSION", "")
gem "selenium-webdriver", selenium_version unless selenium_version.empty?

gem "guard-rspec", require: false

group :test, :development do
Expand Down
Loading
Loading