Skip to content
Permalink
Browse files

Add CircleCI task to test migrations (#12815)

  • Loading branch information
ThibG authored and Gargron committed Jan 11, 2020
1 parent baa3db3 commit 630b5136ec0c533154947bb3c410db63cd76426c
Showing with 22 additions and 0 deletions.
  1. +22 −0 .circleci/config.yml
@@ -135,6 +135,25 @@ jobs:
- ./mastodon/public/assets
- ./mastodon/public/packs-test/

test-migrations:
<<: *defaults
docker:
- image: circleci/ruby:2.7-buster-node
environment: *ruby_environment
- image: circleci/postgres:10.6-alpine
environment:
POSTGRES_USER: root
- image: circleci/redis:5-alpine
steps:
- *attach_workspace
- *install_system_dependencies
- run:
name: Create database
command: ./bin/rails parallel:create
- run:
name: Run migrations
command: ./bin/rails parallel:migrate

test-ruby2.7:
<<: *defaults
docker:
@@ -220,6 +239,9 @@ workflows:
- build:
requires:
- install-ruby2.7
- test-migrations:
requires:
- install-ruby2.7
- test-ruby2.7:
requires:
- install-ruby2.7

0 comments on commit 630b513

Please sign in to comment.
You can’t perform that action at this time.