Skip to content

Commit

Permalink
Check PSR-4 mapping in CI (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Ion Bazan <[email protected]>
  • Loading branch information
szepeviktor and IonBazan authored Jun 17, 2024
1 parent d3ed217 commit 7bf011c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7bf011c

Please sign in to comment.