Skip to content

Update README.md (#231) #213

Update README.md (#231)

Update README.md (#231) #213

Workflow file for this run

name: CI
on:
push:
branches: [ master, community ]
pull_request:
branches: [ master, community ]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
env:
POSTGRES_USER: postgres
POSTGRES_DB: pia_test
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Build and run tests
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/pia_test
RAILS_ENV: test
run: |
sudo apt-get -yqq install libpq-dev
gem install bundler
bundle install --jobs 4 --retry 3
bin/rails db:prepare
bin/rails test