diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6417303..69207a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,6 +51,9 @@ jobs: uses: ramsey/composer-install@v3 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 - name: Run Tests @@ -65,10 +68,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