Skip to content

Commit

Permalink
Add CircleCI task to test migrations (mastodon#12815)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and Gargron committed Jan 11, 2020
1 parent baa3db3 commit 630b513
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -220,6 +239,9 @@ workflows:
- build:
requires:
- install-ruby2.7
- test-migrations:
requires:
- install-ruby2.7
- test-ruby2.7:
requires:
- install-ruby2.7
Expand Down

0 comments on commit 630b513

Please sign in to comment.