Skip to content

Overhaul README documentation #38

Overhaul README documentation

Overhaul README documentation #38

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dfe_wizard_test
ports:
- "5432:5432"
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/dfe_wizard_test
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Prepare DB
run: |
cd spec/rails-dummy && bundle && bundle exec rails db:create db:schema:load RAILS_ENV=test
- name: Run the specs
run: bundle exec rspec -f doc