Skip to content

fix: support rtheunissen/guzzle-rate-limiter 3.0 #28

fix: support rtheunissen/guzzle-rate-limiter 3.0

fix: support rtheunissen/guzzle-rate-limiter 3.0 #28

name: Static Analysis
on:
push:
branches:
- main
pull_request:
jobs:
phpstan:
name: PHP Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup tools
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: phpstan, cs2pr
- name: Get Composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
- name: Cache PHPStan
uses: actions/cache@v2
with:
path: var/phpstan/
key: phpstan-${{ github.sha }}
restore-keys: phpstan-
- name: Run PHP Static Analysis
run: phpstan analyse --no-progress --error-format=checkstyle | cs2pr