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 31, 2023
1 parent 47b0b6e commit 1a641d1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,34 @@ jobs:
- name: list installed package versions
run: |
pip freeze
- name: Verify executed migrations on branch.
id: capture2
run: |
query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp;)
echo "Query Result: $query_result1"
echo "query_result1=$query_result1" >> $GITHUB_ENV
- name: Verify executed migrations on branch2.
id: capture2
run: |
query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp;)
echo "Query Result: $query_result1"
echo "query_result1=$query_result1" >> $GITHUB_ENV
- name: Verify difference
run: |
echo "echo ${{env.query_result}}"
echo "echo ${{env.query_result1}}"
number1=${{ env.query_result1 }}
number2=${{ env.query_result1 }}
# Perform subtraction
diff=$((number1 - number2))
result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select * from django_migrations ORDER by -id limit $diff ;" edxapp;)
echo "Query Result: $result"
echo "$result"
- name: Run Tests
env:
LMS_CFG: lms/envs/minimal.yml
Expand Down

0 comments on commit 1a641d1

Please sign in to comment.