Skip to content

Merge pull request #24 from ilovepdf/develop #55

Merge pull request #24 from ilovepdf/develop

Merge pull request #24 from ilovepdf/develop #55

Workflow file for this run

name: Code Analysis with PHPStan
on: [push]
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Check if vendor directory exists and remove it
run: |
if [ -d "vendor" ]; then
echo "Removing existing vendor directory"
rm -rf vendor
fi
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Install Composer Dependencies
run: |
composer install
composer dump-autoload
- name: Run PHPStan
run: vendor/bin/phpstan analyse