Skip to content

Commit

Permalink
build: capturing new migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Oct 30, 2023
1 parent 448b6b9 commit 4bbdeff
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,13 @@ jobs:
STUDIO_CFG: lms/envs/minimal.yml
run: |
echo "Running the LMS migrations."
./manage.py lms showmigrations
./manage.py lms migrate
echo "Running the CMS migrations."
./manage.py cms showmigrations
./manage.py cms migrate
- name: Verify executed migrations on master.
run: |
mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations ;" edxapp
- name: Checkout branch repo
uses: actions/checkout@v2
Expand All @@ -148,6 +152,11 @@ jobs:
echo "Running the CMS migrations."
./manage.py cms showmigrations
- name: Verify executed migrations on branch.
run: |
mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations ;" edxapp
# This job aggregates test results. It's the required check for branch protection.
# https://github.com/marketplace/actions/alls-green#why
# https://github.com/orgs/community/discussions/33579
Expand Down

0 comments on commit 4bbdeff

Please sign in to comment.