Skip to content

Commit 042e8cb

Browse files
committed
GHA for validating database schema
Signed-off-by: MarioRadu <[email protected]>
1 parent d843c25 commit 042e8cb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ jobs:
5151
mv config/autoload/local.test.php.dist config/autoload/local.test.php
5252
5353
- name: Collect code coverage with PHPUnit
54-
run: |
55-
vendor/bin/phpunit --colors=always --coverage-clover clover.xml
56-
php bin/doctrine orm:validate-schema --skip-sync
54+
run: vendor/bin/phpunit --colors=always --coverage-clover clover.xml
5755

5856
- name: Send code coverage report to Codecov.io
5957
uses: codecov/codecov-action@v3

.github/workflows/validate-database-schema.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
name: Validate database schema
55

66
jobs:
7-
mutation:
8-
name: PHPStan ${{ matrix.php }}-${{ matrix.os }}
7+
code-coverage:
8+
name: Code Coverage
99

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

@@ -47,7 +47,8 @@ jobs:
4747
- name: Setup project
4848
run: |
4949
mv config/autoload/local.php.dist config/autoload/local.php
50-
mv config/autoload/local.test.php.dist config/autoload/local.test.php
50+
mv config/autoload/mail.local.php.dist config/autoload/mail.local.php
51+
mv config/autoload/local.test.php.dist config/autoload/local.test.php
5152
52-
- name: Run database schema validation
53-
run: php bin/doctrine orm:validate-schema --skip-sync
53+
- name: Validate database schema
54+
run: php bin/doctrine orm:validate-schema --skip-sync

0 commit comments

Comments
 (0)