Skip to content

ci: add db migrations checks to tests and build workflows - #3920

Merged
rjsparks merged 3 commits into
ietf-tools:mainfrom
NGPixel:ci-run-migrate
May 3, 2022
Merged

ci: add db migrations checks to tests and build workflows#3920
rjsparks merged 3 commits into
ietf-tools:mainfrom
NGPixel:ci-run-migrate

Conversation

@NGPixel

@NGPixel NGPixel commented May 2, 2022

Copy link
Copy Markdown
Member

closes #3919

@NGPixel
NGPixel requested a review from rjsparks May 2, 2022 22:43
Comment thread .github/workflows/build.yml Outdated
echo "Running checks..."
./ietf/manage.py check
echo "Validating migrations..."
$do ./ietf/manage.py makemigrations | tee /dev/stderr | $do grep -q "^No changes detected$" || die "Model changes without migrations found."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$do (in several places here) no longer makes sense?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

die is also locally defined in the source script.

@NGPixel NGPixel May 2, 2022

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I was wondering what $do was used for. I assumed it was some special magic bash keyword...
I'll rework the code.

@NGPixel
NGPixel requested a review from rjsparks May 3, 2022 03:17
@rjsparks
rjsparks merged commit f778058 into ietf-tools:main May 3, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cicd: PR checks should look to see if the PR changes models without creating corresponding migrations

2 participants