Add PHPStan report for SonarQube analysis
- Add sonar.php.phpstan.reportPaths to sonar-project.properties - Generate phpstan-report.json in CI php job, sonarqube job, and sonarqube.yml workflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -68,7 +68,7 @@ jobs:
|
||||
run: php bin/console lint:container
|
||||
|
||||
- name: PHPStan
|
||||
run: vendor/bin/phpstan analyse src/ --level=6 --no-progress
|
||||
run: vendor/bin/phpstan analyse src/ --level=6 --no-progress --error-format=json > phpstan-report.json || true
|
||||
|
||||
- name: PHP CS Fixer
|
||||
run: vendor/bin/php-cs-fixer fix --dry-run --diff
|
||||
@@ -175,6 +175,9 @@ jobs:
|
||||
- name: JS tests with coverage
|
||||
run: bun run test:coverage
|
||||
|
||||
- name: PHPStan report
|
||||
run: vendor/bin/phpstan analyse src/ --level=6 --no-progress --error-format=json > phpstan-report.json || true
|
||||
|
||||
- name: Create test database
|
||||
run: php bin/console doctrine:database:create --env=test --if-not-exists
|
||||
|
||||
|
||||
@@ -67,6 +67,9 @@ jobs:
|
||||
- name: JS tests with coverage
|
||||
run: bun run test:coverage
|
||||
|
||||
- name: PHPStan report
|
||||
run: vendor/bin/phpstan analyse src/ --level=6 --no-progress --error-format=json > phpstan-report.json || true
|
||||
|
||||
- name: Build assets
|
||||
run: bun run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user