Refactor codebase, increase PHPStan level to 6 #76
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
laravel: [ 10.*, 11.* ] | |
php: [ 8.1, 8.2, 8.3 ] | |
phpunit: [ 10.*, 11.* ] | |
include: | |
- laravel: 10.* | |
testbench: 8.* | |
- laravel: 11.* | |
testbench: 9.* | |
exclude: | |
- laravel: 10.* | |
phpunit: 11.* | |
- laravel: 11.* | |
php: 8.1 | |
name: P${{ matrix.php }} - L${{ matrix.laravel }} - PU${{ matrix.phpunit }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, fileinfo, libxml, mbstring | |
coverage: none | |
- name: Install dependencies | |
run: | | |
composer remove --dev laravel/pint --no-interaction --no-update | |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update | |
composer update --prefer-dist --no-progress --no-suggest | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
- name: Run test suite | |
run: composer run-script test |