Skip to content

Merge pull request #60 from viviancreates/vd-more-misc-rubric-things #27

Merge pull request #60 from viviancreates/vd-more-misc-rubric-things

Merge pull request #60 from viviancreates/vd-more-misc-rubric-things #27

Workflow file for this run

name: "Ruby on Rails CI"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
ports:
- "5432:5432"
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
API_KEY_NAME: 'dummy_key_name'
API_KEY_PRIVATE_KEY: 'dummy_private_key'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
- name: Set up database schema
run: bin/rails db:schema:load
# Run MiniTest tests
- name: Run MiniTest
run: bin/rails test