46 lines
1005 B
YAML
46 lines
1005 B
YAML
name: Static Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
phpstan:
|
|
name: PHPStan
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.2
|
|
coverage: none
|
|
|
|
- name: Install composer dependencies
|
|
run: composer update --prefer-stable --prefer-dist --no-interaction
|
|
|
|
- name: Run PHPStan
|
|
run: composer analyse
|
|
|
|
php-cs-fixer:
|
|
name: PHP CS Fixer
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.2
|
|
coverage: none
|
|
|
|
- name: Install composer dependencies
|
|
run: composer update --prefer-stable --prefer-dist --no-interaction
|
|
|
|
- name: Run PHP CS Fixer
|
|
run: composer cs-check |