mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
58 lines
1.2 KiB
YAML
58 lines
1.2 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: 8.1
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Install Dependencies
|
|
run: composer update --no-interaction --no-progress --ansi
|
|
|
|
- name: Run PHP-CS-Fixer
|
|
run: PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix -v --allow-risky=yes --dry-run --ansi
|
|
|
|
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: 8.1
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Install Dependencies
|
|
run: composer update --prefer-stable --no-interaction --no-progress --ansi
|
|
|
|
- name: Types
|
|
run: composer test:types
|
|
|
|
- name: Style
|
|
run: composer test:lint
|
|
|
|
- name: Recfato
|
|
run: composer test:refacto
|