Skip to content

Set up PHPStan

Set up PHPStan #27

Workflow file for this run

name: PHPUnit
on:
pull_request: ~
push:
branches: [ main ]
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
laravel: [ 10.* ]
php: [ 8.1 ]
include:
- laravel: 10.*
php: 8.2
- laravel: 10.*
php: 8.3
- laravel: 11.*
php: 8.2
- laravel: 11.*
php: 8.3
- laravel: 11.*
php: 8.4
name: PHPUnit (Laravel ${{ matrix.laravel }}, PHP ${{ matrix.php }})
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
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 require laravel/framework:"${{ matrix.laravel }}" --dev --no-update
composer install --prefer-dist --no-interaction --no-progress
- name: Run PHPUnit
run: ./vendor/bin/phpunit