mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
42 lines
924 B
YAML
42 lines
924 B
YAML
version: 2.1
|
|
|
|
orbs:
|
|
ruby: cimg/ruby@2.1.1
|
|
browser-tools: cimg/browser-tools@1.2.3
|
|
|
|
jobs:
|
|
test:
|
|
docker:
|
|
- image: cimg/ruby:3.3.5
|
|
environment:
|
|
RAILS_ENV: test
|
|
- image: cimg/postgres:13.3
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: test_database
|
|
POSTGRES_PASSWORD: mysecretpassword
|
|
- image: redis:7.0
|
|
|
|
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
|
|
- store_artifacts:
|
|
path: coverage
|
|
|
|
workflows:
|
|
rspec:
|
|
jobs:
|
|
- test
|