Skip to content

Adds custom schemas #21

Adds custom schemas

Adds custom schemas #21

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: atlas_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4.1"
bundler-cache: false
- name: Install dependencies
run: |
bundle lock --add-platform x86_64-linux
bundle install
- name: Setup test database
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/atlas_test
run: |
bundle exec rails db:create
bundle exec rails db:schema:load
- name: Run RuboCop
run: bundle exec rubocop
- name: Run RSpec
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/atlas_test
run: bundle exec rspec