From 10a086923d3ab5f7d4f0c3879b86461facdab63d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 15 Jun 2024 22:41:07 +0200 Subject: [PATCH 1/2] Check PSR-4 mapping in CI --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6417303..5daf6ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,6 +51,8 @@ jobs: uses: ramsey/composer-install@v3 with: dependency-versions: ${{ matrix.dependencies }} + - name: Check PSR-4 mapping + run: composer dump-autoload --dev --optimize --strict-psr - name: Set default branch for tests run: git config --global init.defaultBranch main - name: Run Tests @@ -65,10 +67,10 @@ jobs: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} run: | composer config --no-plugins allow-plugins.infection/extension-installer true - composer req infection/infection -W + composer require infection/infection --update-with-all-dependencies vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=100 --min-msi=100 -s -j4 --only-covered - name: Run phpstan if: ${{ matrix.php-versions == 8.3 && matrix.operating-system == 'ubuntu-latest' }} run: | - composer req phpstan/phpstan + composer require phpstan/phpstan --dev vendor/bin/phpstan From cde09412c24a6ef28a53d96ff2e5eef8a817268e Mon Sep 17 00:00:00 2001 From: Ion Bazan Date: Mon, 17 Jun 2024 17:33:59 +0800 Subject: [PATCH 2/2] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5daf6ae..69207a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,6 +52,7 @@ jobs: with: dependency-versions: ${{ matrix.dependencies }} - name: Check PSR-4 mapping + if: ${{ matrix.php-versions == 8.3 && matrix.composer == 'v2' }} run: composer dump-autoload --dev --optimize --strict-psr - name: Set default branch for tests run: git config --global init.defaultBranch main