Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stringer-rss/stringer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: ogii-test/delete-test-db-postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 18 commits
  • 3 files changed
  • 1 contributor

Commits on Jul 5, 2023

  1. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c844617 View commit details
  2. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ebc8874 View commit details
  3. Update .ruby-version

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a927e25 View commit details
  4. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c80df3e View commit details
  5. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8994594 View commit details
  6. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    eaec1f1 View commit details
  7. Update database.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    444d667 View commit details
  8. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    22482a8 View commit details
  9. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    85faa63 View commit details
  10. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e482dba View commit details
  11. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0e02a69 View commit details
  12. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cb35f65 View commit details
  13. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f33be5f View commit details
  14. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fa04ccf View commit details
  15. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a8e1ea6 View commit details
  16. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b1023b0 View commit details
  17. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8019447 View commit details
  18. Update config.yml

    Aaron Clark authored Jul 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0c7ed5b View commit details
Showing with 22 additions and 73 deletions.
  1. +16 −72 .circleci/config.yml
  2. +1 −1 .ruby-version
  3. +5 −0 config/database.yml
88 changes: 16 additions & 72 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,109 +1,53 @@
version: 2.1

orbs:
browser-tools: circleci/browser-tools@1.2.3
node: circleci/node@5.0.0

jobs:
build:
parallelism: 1
docker:
- image: cimg/ruby:3.2.2-browsers
- image: teddybnzx/novem_exclusive_gold:latest #cimg/ruby:3.1.2 #
environment:
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3
BUNDLE_PATH: vendor/bundle
PGHOST: 127.0.0.1
PGUSER: postgres
RACK_ENV: test
RAILS_ENV: test
- image: cimg/postgres:10.18
environment:
POSTGRES_USER: postgres
POSTGRES_DB: app_test
POSTGRES_PASSWORD:
POSTGRES_DB: novem_exclusive_test
POSTGRES_PASSWORD: ""

working_directory: ~/app

steps:
- checkout
- browser-tools/install-browser-tools

# - node/install:
# node-version: 16.13.1
# install-yarn: true
# - run: npm install --global yarn

- run:
name: Which bundler?
command: bundle -v

# https://circleci.com/docs/2.0/caching/
- restore_cache:
keys:
- bundle-v1-{{ checksum "Gemfile.lock" }}
- bundle-v1-

- run: # Install Ruby dependencies
name: Bundle Install
command: bundle check || bundle install

# - run:
# name: install postgres client
# command: |
# apt-get update
# apt-get install -y postgresql-client

# - run:
# name: Bundler Audit
# command: bundle exec bundle audit

- save_cache:
key: bundle-v1-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

# - restore_cache:
# keys:
# - yarn-{{ checksum "yarn.lock" }}
# - yarn-

# - run:
# name: Yarn Install
# command: yarn install --cache-folder ~/.cache/yarn

# - save_cache:
# key: yarn-{{ checksum "yarn.lock" }}
# paths:
# - ~/.cache/yarn
- run:
name: install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
environment:
DOCKERIZE_VERSION: v0.6.1

- run:
name: Wait for DB
command: dockerize -wait tcp://localhost:5432 -timeout 1m

- run:
name: Database setup
command: bundle exec rake db:create db:schema:load --trace

# - run:
# name: Brakeman
# command: bundle exec brakeman

# - run:
# name: Stylelint
# command: yarn stylelint

- run:
name: Rubocop
command: bundle exec rubocop

- run:
name: Run rspec in parallel
command: |
bundle exec rspec --exclude-pattern "spec/system/*_spec.rb"
# bundle exec rspec --profile 10 \
# --format RspecJunitFormatter \
# --out test_results/rspec.xml \
# --format progress \
# $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
- store_test_results: # https://circleci.com/docs/2.0/collect-test-data/
path: test_results

- run:
name: Run system tests
command: |
COVERAGE=false bundle exec rspec spec/system/
command: bundle exec rake db:create --trace
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.1.2
5 changes: 5 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -14,3 +14,8 @@ production:
url: <%= ENV["DATABASE_URL"] %>
encoding: unicode
pool: <%= Integer(ENV.fetch("DB_POOL", 15)) %>

novem_exclusive_test:
adapter: postgresql
database: novem_exclusive_test
pool: 5