Skip to content

Commit 7bf011c

Browse files
Check PSR-4 mapping in CI (#33)
Co-authored-by: Ion Bazan <ion.bazan@gmail.com>
1 parent d3ed217 commit 7bf011c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
uses: ramsey/composer-install@v3
5252
with:
5353
dependency-versions: ${{ matrix.dependencies }}
54+
- name: Check PSR-4 mapping
55+
if: ${{ matrix.php-versions == 8.3 && matrix.composer == 'v2' }}
56+
run: composer dump-autoload --dev --optimize --strict-psr
5457
- name: Set default branch for tests
5558
run: git config --global init.defaultBranch main
5659
- name: Run Tests
@@ -65,10 +68,10 @@ jobs:
6568
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
6669
run: |
6770
composer config --no-plugins allow-plugins.infection/extension-installer true
68-
composer req infection/infection -W
71+
composer require infection/infection --update-with-all-dependencies
6972
vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=100 --min-msi=100 -s -j4 --only-covered
7073
- name: Run phpstan
7174
if: ${{ matrix.php-versions == 8.3 && matrix.operating-system == 'ubuntu-latest' }}
7275
run: |
73-
composer req phpstan/phpstan
76+
composer require phpstan/phpstan --dev
7477
vendor/bin/phpstan

0 commit comments

Comments
 (0)