Skip to content

Update rspec.yml

Update rspec.yml #2

Workflow file for this run

name: Ruby CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Ruby ${{ matrix.ruby }} - Gemfile ${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [3.1.6, 3.2.5, 3.3.4]
gemfile:
- gemfiles/rails_7.0.gemfile
- gemfiles/rails_7.1.gemfile
- gemfiles/rails_7.2.gemfile
- gemfiles/rails_edge.gemfile
env:
RAILS_ENV: test
DISPLAY: ":99.0"
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: bundle install --gemfile ${{ matrix.gemfile }}
- name: Set up PhantomJS
run: |
mkdir -p travis-phantomjs
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xvf travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C travis-phantomjs
echo "$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin" >> $GITHUB_PATH
- name: Run tests
run: bundle exec rspec