mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 02:52:12 +02:00
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Static Analysis
|
|
|
|
on: ['push', 'pull_request']
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cs:
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Code Style
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
|
|
with:
|
|
php-version: 8.0
|
|
tools: composer:v2
|
|
coverage: none
|
|
|
|
- name: Install Dependencies
|
|
run: composer update --no-interaction --no-progress
|
|
|
|
- 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@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
|
|
with:
|
|
php-version: 8.0
|
|
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
|