.circleci/config.yml in postgres-vacuum-monitor-0.12.0 vs .circleci/config.yml in postgres-vacuum-monitor-0.13.0

- old
+ new

@@ -1,26 +1,26 @@ version: 2.1 jobs: lint: docker: - - image: salsify/ruby_ci:2.7.2 + - image: salsify/ruby_ci:2.7.7 working_directory: ~/postgres-vacuum-monitor steps: - checkout - restore_cache: keys: - - v1-gems-ruby-2.7.2-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }} - - v1-gems-ruby-2.7.2- + - v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }} + - v1-gems-ruby-2.7.7- - run: name: Install Gems command: | if ! bundle check --path=vendor/bundle; then bundle install --path=vendor/bundle --jobs=4 --retry=3 bundle clean fi - save_cache: - key: v1-gems-ruby-2.7.2-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }} + key: v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }} paths: - "vendor/bundle" - "gemfiles/vendor/bundle" - run: name: Run Rubocop @@ -31,21 +31,19 @@ type: string ruby_version: type: string docker: - image: salsify/ruby_ci:<< parameters.ruby_version >> + - image: circleci/postgres:12.9 environment: - TEST_DATABASE_URL: postgresql://circleci@localhost/circle_test - - image: circleci/postgres:9.6 - environment: - POSTGRES_USER: "ubuntu" - POSTGRES_DB: "postgres_vacuum_monitor_test" + POSTGRES_USER: "circleci" + POSTGRES_DB: "circle_test" POSTGRES_HOST_AUTH_METHOD: "trust" environment: + DB_USER: "circleci" + ADMIN_DB_NAME: "circle_test" RACK_ENV: "test" - DB_HOST: 'localhost' - DB_USER: 'ubuntu' RAILS_ENV: "test" CIRCLE_TEST_REPORTS: "test-results" BUNDLE_GEMFILE: << parameters.gemfile >> working_directory: ~/postgres-vacuum-monitor steps: @@ -69,11 +67,11 @@ - run: name: Wait for Database command: dockerize -wait tcp://localhost:5432 -timeout 60s - run: name: Wait for Database User - command: t=30; for i in `seq $t`; do psql -h localhost -p 5432 -U ubuntu -d postgres_vacuum_monitor_test -c '\q' && break; [ $i -eq $t ] && return 2; sleep 1; done; + command: t=30; for i in `seq $t`; do psql -h localhost -p 5432 -U circleci -d circle_test -c '\q' && break; [ $i -eq $t ] && return 2; sleep 1; done; - run: name: Run Tests command: | bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec - store_test_results: @@ -84,15 +82,13 @@ - lint - test: matrix: parameters: gemfile: - - "gemfiles/activerecord_5_2.gemfile" - "gemfiles/activerecord_6_0.gemfile" - "gemfiles/activerecord_6_1.gemfile" + - "gemfiles/activerecord_7_0.gemfile" ruby_version: - - "2.6.6" - - "2.7.2" - - "3.0.0" - exclude: - - gemfile: "gemfiles/activerecord_5_2.gemfile" - ruby_version: "3.0.0" + - "2.7.7" + - "3.0.5" + - "3.1.3" + - "3.2.0"