Skip to content

Commit 8fa140d

Browse files
committed
GHA for validating database schema
Signed-off-by: MarioRadu <[email protected]>
1 parent 6f0adc2 commit 8fa140d

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

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

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
on:
22
- push
33

4-
name: Validate database schema
4+
name: Run PHPStan checks
55

66
jobs:
7-
validate-database-schema:
8-
name: Validate database schema
7+
mutation:
8+
name: PHPStan ${{ matrix.php }}-${{ matrix.os }}
99

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

@@ -44,13 +44,5 @@ jobs:
4444
- name: Install dependencies with composer
4545
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
4646

47-
- name: Setup project
48-
run: |
49-
sudo apt-get update
50-
sudo apt-get install php"${PHP_VERSION}"-sqlite3
51-
mv config/autoload/local.php.dist config/autoload/local.php
52-
mv config/autoload/mail.local.php.dist config/autoload/mail.local.php
53-
mv config/autoload/local.test.php.dist config/autoload/local.test.php
54-
55-
- name: Run database schema command
56-
run: php bin/doctrine orm:validate-schema --skip-sync
47+
- name: Run database schema validation
48+
run: php bin/doctrine orm:validate-schema --skip-sync

0 commit comments

Comments
 (0)