Skip to content

Merge pull request #37 from ilovepdf/feature/v2.2.2 #45

Merge pull request #37 from ilovepdf/feature/v2.2.2

Merge pull request #37 from ilovepdf/feature/v2.2.2 #45

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