From d5f006f278f074cf076ddd6213ae498c0a90fd45 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 14 Feb 2024 22:07:14 +0300 Subject: [PATCH 1/3] remove brianium/paratest --- .github/workflows/phpunits.yaml | 6 +----- composer.json | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index adcf73a38..5ba952640 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -137,11 +137,7 @@ jobs: - name: Run test suite id: unit-run run: | - if [[ $DB_CONNECTION == "mariadb" ]]; then - composer unit - else - composer parabench - fi + composer parabench env: WALLET_CACHE_DRIVER: ${{ matrix.caches }} WALLET_LOCK_DRIVER: ${{ matrix.locks }} diff --git a/composer.json b/composer.json index 2d6e4212a..953611257 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,6 @@ "ramsey/uuid": "^4.0" }, "require-dev": { - "brianium/paratest": "^7.4", "driftingly/rector-laravel": "^1.0", "ergebnis/phpstan-rules": "^2.1", "infection/infection": "~0.27", @@ -62,8 +61,6 @@ }, "scripts": { "docs": "@php -S localhost:3000 -t ./docs", - "unit":"@php vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", - "paraunit":"@php vendor/bin/paratest --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", "parabench":"@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", "infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases", "phpstan": ["@phpstan-src", "@phpstan-tests"], From 3b261a1dcacb87ad114e46c0e3a15d5130ddf398 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 14 Feb 2024 22:20:04 +0300 Subject: [PATCH 2/3] phpstan fix --- tests/Infra/Models/ItemMultiPrice.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Infra/Models/ItemMultiPrice.php b/tests/Infra/Models/ItemMultiPrice.php index 11d6f1c45..ceaac0bb4 100644 --- a/tests/Infra/Models/ItemMultiPrice.php +++ b/tests/Infra/Models/ItemMultiPrice.php @@ -62,6 +62,9 @@ public function getMetaProduct(): ?array return null; } + /** + * @return array + */ protected function casts(): array { return [ From c46b8c118d084f8bf20c1dee144eba1e247c1c13 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 14 Feb 2024 22:21:53 +0300 Subject: [PATCH 3/3] phpunits.yaml optimize --- .github/workflows/phpunits.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 5ba952640..b007de80a 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -119,7 +119,7 @@ jobs: - name: Check codeclimate id: codeclimate-check - run: echo "execute=${{ matrix.php-versions == '8.2' && matrix.caches == 'array' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT + run: echo "execute=${{ matrix.php-versions == '8.3' && matrix.caches == 'array' && matrix.locks == 'redis' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT - name: Prepare codeclimate id: codeclimate-prepare