BC-6338 - When rabbitmq restarts the preview service gets stuck #26897
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Migrations updated | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
MONGODB_VERSION: 4.4 | |
NODE_VERSION: '18' | |
jobs: | |
migration: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: mongodb setup | |
uses: supercharge/[email protected] | |
- name: setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm ci | |
- run: npm run setup:db:seed | |
- name: check no pending migrations (migration is in db) | |
run: test $(npx mikro-orm migration:pending | grep -c "Migration") -eq 0 |