Skip to content

Bump selenium-webdriver from 4.21.1 to 4.22.0 (#2080) #4224

Bump selenium-webdriver from 4.21.1 to 4.22.0 (#2080)

Bump selenium-webdriver from 4.21.1 to 4.22.0 (#2080) #4224

Workflow file for this run

name: check
on: [push]
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failures }}
services:
postgres:
image: postgres:11
env:
POSTGRES_USER: rails_github_actions
POSTGRES_DB: rails_github_actions_test
POSTGRES_PASSWORD: postgres
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
ruby: ['3.3']
allow-failures: [false]
include:
- ruby: head
allow-failures: true
steps:
- uses: actions/checkout@v4
- name: Setup nodejs 16
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Setup dependencies
run: |
gem install bundler
bundle config set with 'development'
bundle install --jobs 4 --retry 3
yarn install
- name: Setup geckodriver and firefox
env:
geckodriver_version: v0.33.0
run: |
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt update && sudo apt-get -y install firefox-esr
wget https://github.com/mozilla/geckodriver/releases/download/$geckodriver_version/geckodriver-$geckodriver_version-linux64.tar.gz
tar -xvf geckodriver-$geckodriver_version-linux64.tar.gz
mv geckodriver /usr/local/bin/geckodriver
- name: Setup test database and run tests
env:
RAILS_ENV: test
PGHOST: localhost
POSTGRES_DB: rails_github_actions_test
POSTGRES_USER: rails_github_actions
POSTGRES_PASSWORD: postgres
run: |
cp config/database.ci.yml config/database.yml
rake db:create db:migrate db:seed
bundle exec rake spec
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker image
run: docker build .
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up latest ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Setup rubocop
run: |
bundle config set with 'development'
bundle install
- name: Run Rubocop
run: rubocop