Skip to content

docs: update README

docs: update README #9

name: Composer Analyze
on:
pull_request:
push:
branches:
- main
jobs:
composer-analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install Composer
run: |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
- name: Install Dependencies
run: composer install
- name: Install phpstan-deprecation-rules
run: composer require --dev phpstan/phpstan-deprecation-rules
- name: Install phpstan-phpunit
run: composer require --dev phpstan/phpstan-phpunit
- name: Install phpstan-banned-code
run: composer require --dev ekino/phpstan-banned-code
- name: Composer Analyze
run: vendor/bin/phpstan analyze --memory-limit=2G