dawarich/.circleci/config.yml
2024-08-20 22:22:47 +02:00

37 lines
772 B
YAML

version: 2.1
orbs:
ruby: circleci/ruby@2.1.1
jobs:
build:
docker:
- image: cimg/ruby:3.2.3
environment:
RAILS_ENV: test
- image: circleci/postgres:14.0
environment:
POSTGRES_USER: postgres
POSTGRES_DB: test_database
steps:
- checkout
- run:
name: Install Bundler
command: gem install bundler
- run:
name: Bundle Install
command: bundle install --jobs=4 --retry=3
- run:
name: Database Setup
command: |
bundle exec rails db:create
bundle exec rails db:schema:load
- run:
name: Run RSpec tests
command: bundle exec rspec
workflows:
sample:
jobs:
- build