Skip to content

Cleanup tests

Cleanup tests #33

Workflow file for this run

name: PHPStan
on:
pull_request: ~
push:
branches: [ main ]
jobs:
phpstan:
runs-on: ubuntu-latest
name: PHPStan
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2
coverage: none
- name: Get Composer cache directory
id: composer-cache
run: |
echo "COMPOSER_CACHE_DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Setup Composer cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.COMPOSER_CACHE_DIR }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --no-interaction --no-progress
- name: Run PHPStan
run: ./vendor/bin/phpstan --no-progress