Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jan 17, 2024
1 parent ad2491a commit d8d5596
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ jobs:

- name: Testing DB migrations for errors & warnings
run: |
python3 manage.py makemigrations
m1=$(python3 manage.py makemigrations 2>&1)
if echo "$m1" | grep -q 'WARNING'; then exit 1;fi
m2=$(python3 manage.py migrate 2>&1)
python3 manage.py makemigrations aw
m2=$(python3 manage.py migrate aw 2>&1)
if echo "$m2" | grep -q 'WARNING'; then exit 1;fi
m3=$(python3 manage.py migrate aw 2>&1)
python3 manage.py migrate
m3=$(python3 manage.py migrate 2>&1)
if echo "$m3" | grep -q 'WARNING'; then exit 1;fi
shell: bash
working-directory: src/ansible-webui/
Expand Down

0 comments on commit d8d5596

Please sign in to comment.