Skip to content

Commit 8d723b4

Browse files
committed
fix: add phpunit group to MySQL CI configuration for improved test organization and include framework-options for mutation tests in configuration.
1 parent 7ca0902 commit 8d723b4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci-mysql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
database-type: mysql
2525
database-versions: '["8.0", "8.4", "latest"]'
2626
enable-concurrency: true
27-
group-phpunit: mysql
2827
extensions: pdo, pdo_mysql
28+
group-phpunit: mysql
2929
os: '["ubuntu-latest"]'
30+
php-versions: '["8.4"]'

.github/workflows/mutation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
uses: php-forge/actions/.github/workflows/infection.yml@main
2323
with:
2424
phpstan: true
25+
framework-options: --test-framework-options="--group=sqlite"
2526
secrets:
2627
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"scripts": {
5252
"check-dependencies": "./vendor/bin/composer-require-checker check",
5353
"ecs": "./vendor/bin/ecs --fix",
54-
"mutation": "./vendor/bin/infection --threads=4 --ignore-msi-with-no-mutations --only-covered --min-msi=100 --min-covered-msi=100",
55-
"mutation-static": "./vendor/bin/infection --threads=4 --ignore-msi-with-no-mutations --only-covered --min-msi=100 --min-covered-msi=100 --static-analysis-tool=phpstan",
54+
"mutation": "./vendor/bin/infection --threads=4 --ignore-msi-with-no-mutations --only-covered --min-msi=100 --min-covered-msi=100 --test-framework-options=--group=sqlite",
55+
"mutation-static": "./vendor/bin/infection --threads=4 --ignore-msi-with-no-mutations --only-covered --min-msi=100 --min-covered-msi=100 --static-analysis-tool=phpstan --test-framework-options=--group=sqlite",
5656
"rector": "./vendor/bin/rector process src",
5757
"static": "./vendor/bin/phpstan --memory-limit=512M",
5858
"tests": "./vendor/bin/phpunit"

0 commit comments

Comments
 (0)