Skip to content

Commit 739f943

Browse files
committed
Add schema validation to the CI workflow
1 parent be0b88e commit 739f943

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ jobs:
5858
run: composer validate --no-check-all --no-check-lock --strict;
5959
- name: Linting all php files
6060
run: find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*;
61+
- name: Validate Doctrine schema
62+
run: |
63+
export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }}
64+
export PHPLIST_DATABASE_USER=${{ env.DB_USERNAME }}
65+
export PHPLIST_DATABASE_PASSWORD=${{ env.DB_PASSWORD }}
66+
export PHPLIST_DATABASE_PORT=${{ job.services.mysql.ports['3306'] }}
67+
export PHPLIST_DATABASE_HOST=127.0.0.1
68+
php bin/console doctrine:schema:validate
6169
- name: Run units tests with phpunit
6270
run: vendor/bin/phpunit tests/Unit/ --testdox
6371
- name: Run integration tests with phpunit

0 commit comments

Comments
 (0)