Skip to content

JoeRoumy/django-migration-checker-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-migration-checker-action

Github actions for django app migrations checker. To fix multiple develop commit django migration in different Pull Request at the same time, and then cause conflict migration issue.

Detail

Use python package django-migration-checker to do migration validation. The package will not install any django related package. Check migration by read file, not python import. So may not perfect solution, but good enough.

Usage

Workflow example:

name: Django Migration Checker
on: pull_request

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout the latest code
        uses: actions/checkout@v2
        with:
          fetch-depth: 1

      - name: Django Migration Checker
        uses: JoeRoumy/[email protected]
        with:
          app-path: app

parameter

inputs

  • app-path: django app folder path. after action/checkout, the working dir would be repository root.

Resource

About

Github actions for django app migrations checker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%