Skip to content

Commit

Permalink
GHA for validating database schema
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <[email protected]>
  • Loading branch information
MarioRadu committed Jan 9, 2025
1 parent d843c25 commit 042e8cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ jobs:
mv config/autoload/local.test.php.dist config/autoload/local.test.php
- name: Collect code coverage with PHPUnit
run: |
vendor/bin/phpunit --colors=always --coverage-clover clover.xml
php bin/doctrine orm:validate-schema --skip-sync
run: vendor/bin/phpunit --colors=always --coverage-clover clover.xml

- name: Send code coverage report to Codecov.io
uses: codecov/codecov-action@v3
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/validate-database-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
name: Validate database schema

jobs:
mutation:
name: PHPStan ${{ matrix.php }}-${{ matrix.os }}
code-coverage:
name: Code Coverage

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -47,7 +47,8 @@ jobs:
- name: Setup project
run: |
mv config/autoload/local.php.dist config/autoload/local.php
mv config/autoload/local.test.php.dist config/autoload/local.test.php
mv config/autoload/mail.local.php.dist config/autoload/mail.local.php
mv config/autoload/local.test.php.dist config/autoload/local.test.php
- name: Run database schema validation
run: php bin/doctrine orm:validate-schema --skip-sync
- name: Validate database schema
run: php bin/doctrine orm:validate-schema --skip-sync

0 comments on commit 042e8cb

Please sign in to comment.