Kaynağa Gözat

Add CircleCI task to test migrations (#12815)

master^2
ThibG 4 yıl önce
committed by Eugen Rochko
ebeveyn
işleme
630b5136ec
1 değiştirilmiş dosya ile 22 ekleme ve 0 silme
  1. +22
    -0
      .circleci/config.yml

+ 22
- 0
.circleci/config.yml Dosyayı Görüntüle

@@ -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


Yükleniyor…
İptal
Kaydet