Add PHP 8.3 & Laravel 11 support; Use PHP attributes in tests #14
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: PHPStan | |
on: | |
- push | |
- pull_request | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.3] | |
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: Cache Composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.lock', '*/composer.lock') }} | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php }} | |
php_extensions: gd | |
command: update | |
- name: PHPStan Static Analysis | |
uses: php-actions/phpstan@v3 | |
with: | |
path: src/ | |
configuration: phpstan.neon | |
php_version: ${{ matrix.php }} | |
php_extensions: gd |