Skip to content

Run Ruby examples

Run Ruby examples #485

Workflow file for this run

name: Run Ruby examples
on:
workflow_dispatch:
schedule:
- cron: '55 22 * * *'
pull_request:
branches:
- trunk
paths:
- 'examples/ruby/**'
push:
branches:
- trunk
paths:
- 'examples/ruby/**'
env:
DISPLAY: :99
GITHUB_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
jobs:
test_examples:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v3
- name: Start Xvfb
if: matrix.os == 'ubuntu-latest'
run: Xvfb :99 &
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Install Gems
working-directory: ./examples/ruby
run: bundle install
- name: Run tests
uses: nick-invision/[email protected]
with:
timeout_minutes: 20
max_attempts: 3
command: |
cd examples/ruby
bundle exec rspec