Skip to content

Commit

Permalink
ci: Add new static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Dec 27, 2024
1 parent 2f6c190 commit e91707c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xdebug

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand All @@ -45,16 +44,16 @@ jobs:

- name: Lint
run: |
export PHP_CS_FIXER_IGNORE_ENV=1 && ./vendor/bin/php-cs-fixer fix --diff --dry-run -v
./vendor/bin/php-cs-fixer fix --diff --dry-run -v
- name: Static analysis
run: |
./vendor/bin/phpstan analyse src --level 6
./vendor/bin/phpstan analyse tests --level 6
./vendor/bin/phpstan
./vendor/bin/rector --dry-run
- name: Test
run: |
export XDEBUG_MODE=coverage && php vendor/bin/phpunit
php vendor/bin/phpunit
- name: Check dependencies
run: |
Expand Down

0 comments on commit e91707c

Please sign in to comment.