Merge pull request #37 from ilovepdf/feature/v2.2.2 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |