room members are always added as admins #32975
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: Reminder to update seed data after migration | |
# If this workflow fails, it is a hint that you forgot to update the seed data after a migration. | |
# It is only a hint, because it only checks if you updated the migration collection in the seed data. | |
# It is not a check that you updated the whole seed data correctly. | |
# See the documentation for advice: https://documentation.dbildungscloud.dev/docs/schulcloud-server/Migrations#committing-a-migration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
MONGODB_VERSION: 6.0 | |
NODE_VERSION: '22' | |
jobs: | |
migration: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: mongodb setup | |
uses: supercharge/mongodb-github-action@1.10.0 | |
- 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 $(npm run migration:pending | grep -c "Migration") -eq 0 |