diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index f85b81f..df08008 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -126,6 +126,10 @@ jobs: run: | make migrate + - name: Add dummy data + run: | + make demo FLUSH_ARGS='--no-input' + - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/Makefile b/Makefile index 052d03a..c440dea 100644 --- a/Makefile +++ b/Makefile @@ -204,9 +204,10 @@ dbshell: ## connect to database shell docker compose exec app-dev python manage.py dbshell .PHONY: dbshell +resetdb: FLUSH_ARGS ?= resetdb: ## flush database and create a superuser "admin" @echo "$(BOLD)Flush database$(RESET)" - @$(MANAGE) flush + @$(MANAGE) flush $(FLUSH_ARGS) @${MAKE} superuser .PHONY: resetdb