From 042e8cb9f98ad797d8652b2cbf5c6b22fd399d11 Mon Sep 17 00:00:00 2001 From: MarioRadu Date: Thu, 9 Jan 2025 14:48:02 +0200 Subject: [PATCH] GHA for validating database schema Signed-off-by: MarioRadu --- .github/workflows/codecov.yml | 4 +--- .github/workflows/validate-database-schema.yml | 11 ++++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index da3e0f1..293bb8e 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -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 diff --git a/.github/workflows/validate-database-schema.yml b/.github/workflows/validate-database-schema.yml index f8f732f..6fb944c 100644 --- a/.github/workflows/validate-database-schema.yml +++ b/.github/workflows/validate-database-schema.yml @@ -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 }} @@ -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