Skip to content

chore: Fix dependy syntax and groups #5

chore: Fix dependy syntax and groups

chore: Fix dependy syntax and groups #5

Workflow file for this run

name: RSpec Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: kiln_backend_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
- name: Install Dependencies
run: |
gem install bundler
bundle install
- name: Database Creation & Migrations
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost/kiln_backend_test
run: |
bundle exec rails db:create
bundle exec rails db:migrate
- name: Run Rubocop
run: rubocop
- name: Run RSpec
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:password@localhost/kiln_backend_test
run: bundle exec rspec