version: 2.1 jobs: build: # working_directory: ~/appName docker: - image: cimg/ruby:2.7.7 environment: PG_HOST: localhost PG_USER: ubuntu - image: cimg/postgres:15.1 environment: POSTGRES_USER: ubuntu POSTGRES_DB: circle_test POSTGRES_PASSWORD: $POSTGRES_DB_PASSWORD steps: - checkout - run: name: Install Ruby Dependencies command: bundle install - run: name: Install Appraisals Dependencies command: bundle exec appraisal install - run: name: Run Appraisals Tests environment: POSTGRES_DB_USERNAME: ubuntu POSTGRES_DB_DATABASE: circle_test POSTGRES_DB_PASSWORD: $POSTGRES_DB_PASSWORD command: bundle exec appraisal rspec