mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
name: Static Analysis
|
|
|
|
on: ['push', 'pull_request']
|
|
|
|
jobs:
|
|
cs:
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Code Style
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 7.4
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Install Dependencies
|
|
run: composer update --no-interaction --no-progress
|
|
|
|
- name: Run Rector
|
|
run: vendor/bin/rector process src --dry-run
|
|
|
|
- name: Run PHP-CS-Fixer
|
|
run: vendor/bin/php-cs-fixer fix -v --allow-risky=yes --dry-run
|
|
|
|
phpstan:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
dependency-version: [prefer-lowest, prefer-stable]
|
|
|
|
name: PHPStan ${{ matrix.dependency-version }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 7.4
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Install Dependencies
|
|
run: composer update --prefer-stable --no-interaction --no-progress
|
|
|
|
- name: Run PHPStan
|
|
run: vendor/bin/phpstan analyse --no-progress
|