Initial commit #13
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
name: Code Quality | |
on: [push, pull_request] | |
jobs: | |
phpcs: | |
name: PHP ${{ matrix.php }} - PHP_CodeSniffer | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.3'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install PHP and Extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Install Composer Dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run PHP_CodeSniffer | |
run: vendor/bin/phpcs --no-cache | |
phpstan: | |
name: PHP ${{ matrix.php }} - PHPStan | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.3'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install PHP and Extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Install Composer Dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run PHPStan | |
run: vendor/bin/phpstan --no-progress --no-ansi | |
rector: | |
name: PHP ${{ matrix.php }} - Rector | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.3'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install PHP and Extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Install Composer Dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run Rector | |
run: vendor/bin/rector process --dry-run --no-progress-bar | |
phpunit: | |
name: PHP ${{ matrix.php }} - PHPUnit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.3'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install PHP and Extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: pcov | |
tools: composer:v2 | |
- name: Install Composer Dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run PHPUnit | |
run: vendor/bin/phpunit --no-progress --coverage-text |