Skip to content

Commit 6e65197

Browse files
committed
Add a test for doctrine schema
1 parent ce54cbe commit 6e65197

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PHPCSFIXER?=$(EXEC) php -d memory_limit=1024m vendor/bin/php-cs-fixer
77
.PHONY: help start stop restart install uninstall reset clear-cache tty clear clean
88
.PHONY: db-diff db-migrate db-rollback db-reset db-validate wait-for-db
99
.PHONY: watch assets assets-build
10-
.PHONY: tests lint lint-symfony lint-yaml lint-twig php-cs php-cs-fix security-check
10+
.PHONY: tests lint lint-symfony lint-yaml lint-twig php-cs php-cs-fix security-check test-schema test-all
1111
.PHONY: deps
1212
.PHONY: build up perm
1313
.PHONY: docker-compose.override.yml
@@ -120,7 +120,10 @@ php-cs-fix: vendor
120120
security-check: vendor ## Check for vulnerable dependencies
121121
$(EXEC) vendor/bin/security-checker security:check
122122

123-
test-all: lint security-check tests ## Lint all, check vulnerable dependencies, run PHP tests
123+
test-schema: vendor ## Test the doctrine Schema
124+
$(EXEC) $(CONSOLE) doctrine:schema:validate --skip-sync -vvv --no-interaction
125+
126+
test-all: lint test-schema security-check tests ## Lint all, check vulnerable dependencies, run PHP tests
124127

125128
##
126129
## Dependencies

0 commit comments

Comments
 (0)