Quality assurance #1560
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DO NOT EDIT THIS FILE! | |
# | |
# It's auto-generated by sonata-project/dev-kit package. | |
name: Quality assurance | |
on: | |
schedule: | |
- cron: '30 0 * * *' | |
push: | |
branches: | |
- 3.x | |
- 4.x | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
tools: composer:v2 | |
extensions: mongodb | |
- name: Install Composer dependencies (highest) | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: highest | |
- name: PHPStan | |
run: vendor/bin/phpstan --no-progress --memory-limit=1G analyse --error-format=github | |
psalm: | |
name: Psalm | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
tools: composer:v2 | |
extensions: mongodb | |
- name: Install Composer dependencies (highest) | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: highest | |
- name: Psalm | |
run: vendor/bin/psalm --no-progress --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.3 | |
rector: | |
name: Rector | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
tools: composer:v2 | |
extensions: mongodb | |
- name: Install Composer dependencies (highest) | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: highest | |
- name: Rector | |
run: vendor/bin/rector --no-progress-bar --dry-run |