Skip to content

Upgrade to ruby 3.1.4 #65

Upgrade to ruby 3.1.4

Upgrade to ruby 3.1.4 #65

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13.2-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: browser-actions/setup-chrome@v1
- run: chrome --version
- name: Setup chrome driver (for Selenium)
uses: nanasess/setup-chromedriver@v2
- name: Check versions of installed components
run: |
google-chrome --version
chromedriver --version
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Install PostgreSQL client
run: |
sudo apt-get -yqq install libpq-dev
- name: Build App
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
RAILS_ENV: test
run: |
bin/rails db:setup
- name: Run Tests
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
RAILS_ENV: test
run: |
bin/rails test
bin/rails test:system