Skip to content

Ruby 3.2.2 upgrade #164

Ruby 3.2.2 upgrade

Ruby 3.2.2 upgrade #164

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2.2']
services:
postgres:
image: postgres:11.0
env:
POSTGRES_USER: runner
POSTGRES_PASSWORD: ""
POSTGRES_DB: test_track_test
ports:
- 5432:5432
options: >-
--mount type=tmpfs,destination=/var/lib/postgresql/data
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@v2.2.0
with:
chromedriver-version: '117.0.5938.92'
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Prepare DB
run: bundle exec rake db:test:prepare
- name: Precompile assets
run: bundle exec rake assets:precompile
- name: Run tests
run: bundle exec rake
env:
CAPYBARA_DRIVER: selenium_chrome_headless
COMPILE_ASSETS: 0
EAGER_LOAD: 1