Skip to content

Commit

Permalink
feat: add .circleci/config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LucDelmon committed Sep 15, 2022
1 parent 6f8600b commit 57d78dd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2.1

orbs:
ruby: circleci/[email protected]

jobs:
build:
docker:
- image: cimg/ruby:3.0.0
environment:
RAILS_ENV: test
steps:
- checkout
- ruby/install-deps:
key: gems-{{ checksum "Gemfile.lock" }}
tests:
docker:
- image: cimg/ruby:3.0.0
environment:
RAILS_ENV: test
- image: cimg/postgres:14.4
environment:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- checkout
- ruby/install-deps:
key: gems-{{ checksum "Gemfile.lock" }}
# - run:
# name: Database setup
# command: bundle exec rails db:setup

workflows:
version: 2
ci_workflow:
jobs:
- build
- tests:
requires:
- build

0 comments on commit 57d78dd

Please sign in to comment.