Skip to content

BC-5936 - replace migration library #26746

BC-5936 - replace migration library

BC-5936 - replace migration library #26746

Workflow file for this run

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