Skip to content

fix test runs (#237) #239

fix test runs (#237)

fix test runs (#237) #239

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.1', '3.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
- 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: better_cuprite
COMPILE_ASSETS: 0
EAGER_LOAD: 1